@rules_swift_package_manager//config_settings/spm/platform:macos
matching in a linux docker container on mac os
#1174
Labels
bug
Something isn't working
I'm trying to build a swift project in a linux docker container on mac os and I get an error that a module cannot be imported, because it's only available on apple platforms. This import should be hidden behind a flag that should be only passed on apple platforms. But it's still getting passed on Linux.
Here is the
BUILD.bazel
which doesn't workIf I comment this line out or replace it for the platform condition behind this one, it works just fine:
If it helps here is the code https://github.com/roya1v/generics-pizza/blob/main/BUILD.bazel#L10 (It uses a fork of this repo for a different fix, but I also tried it with the upstream version)
The text was updated successfully, but these errors were encountered: