Fix Linux compatibility issues#1534
Conversation
|
@abdimaye: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/ |
|
@abdimaye can you elaborate a bit on what's still not working? |
Planning to add the details to the list of outstanding errors later today 👍 |
|
Some thoughts that might help looking over those errors:
|
|
@designatednerd sorry I've been ghost! I think the encoding issue was the last. Looks like there are some merge conflicts also which I'll take a peek at later. |
|
Awesome work - though I'm a bit confused as to why the tests aren't running on this at all. I'll poke at it this afternoon. |
|
I'd also like to know if you have suggestions for at least making sure things continue to build on linux - what linux setup should we be using for tests, etc |
|
I wonder if it wasn't building because this was a draft from a forked repo - can you make another commit please? |
I've now added a Dockerfile and build script for linux. Not entirely sure about the testing as I'm still trying to figure this out... |
|
Taking a stab at adding a linux build to the matrix...apologies for pushing to your branch but it's not going to work on any other branch at the moment 😛 |
|
Woof. Running into some serious issues around the fact that even though we're specifically saying only import |
…onflicts # Conflicts: # Apollo.xcodeproj/project.pbxproj # Package.swift
|
Looks like the SQlite sub-lib is not compiling on linux since it uses a bunch of stuff which is iOS specific. Ugh, I wish platform restrictions per target were a thing. I'll have to reach out to the swift forums about why things are trying to import |
😕 Would it be reasonable to skip any tests which have platform specific dependencies for this first iteration? |
|
Unfortunately the problem is not that the tests won't run, it's that the libraries won't even build. Again, I'm not sure why this wasn't showing up as a problem earlier. 😭 |
|
Have you tried xcodebuild? Something like |
|
That's what we're doing on the iOS and mac tests already, unfortuantely. And it's still giving us problems. |
|
Found another issue that's kind of related to this - type checking |
|
Completely forgot about this! I won't be looking into this further so closing PR. |
Issue #1506
List of changes:
FoundationNetworking- required due to new recent move of network-related objects https://stackoverflow.com/questions/58592508/how-can-i-use-foundations-urlrequest-type-on-linuxCreate StringEncoding wrapper and map encoding for Linux