You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some Swift Packages are using environment variables in their Package.swift files to allow some form of configuration before the dependency graph is resolved. E.g. grpc-swift is reading the GRPC_NO_NIO_SSL env variable in their Package.swift. Currently, Tuist doesn't seem to forward environment variables set when invoking tuist to the internal calls to SPM.
So far I did the following:
tuist clean
GRPC_NO_NIO_SSL=1 tuist install
tuist graph SomeTarget
But I still see it in the graph.
Potential solution
This problem could be resolved by forwarding environment variables from tuist to SPM
macOS version
14.4.1
Tuist version
4.9.0
Xcode version
15.3
The text was updated successfully, but these errors were encountered:
What happens if you run the same steps but instead of tuist install, you run GRPC_NO_NIO_SSL=1 swift package resolve in the Tuist directory? Does tuist graph include the dependency or not?
A reproducible sample would be appreciated if you want us to look into it. If you want to take a look, that'd be amazing – if the issue is that we're not passing the initial env variables, then I would probably take a look here
Hi, I just created a reproducible sample project and it turned out that some other 3rd party dependency in my original project depend on swift-nio-ssl as well, so it probably got skipped when resolving grpc-swift, but it was resolved through the others and then the graph command picked it up from there.
To recap, GRPC_NO_NIO_SSL=1 tuist install does seem to work as expected and does forward the env variable. I can't find any mention of swift-nio-ssl in the Package.resolved file of the sample project. And it is important to pass the same environment variable when running the graph command. Otherwise it will fail with an error, as it expects NIOSSL to be present, but it wasn't resolved when running tuist install.
What problem or need do you have?
Some Swift Packages are using environment variables in their Package.swift files to allow some form of configuration before the dependency graph is resolved. E.g. grpc-swift is reading the
GRPC_NO_NIO_SSL
env variable in their Package.swift. Currently, Tuist doesn't seem to forward environment variables set when invokingtuist
to the internal calls to SPM.So far I did the following:
tuist clean
GRPC_NO_NIO_SSL=1 tuist install
tuist graph SomeTarget
But I still see it in the graph.
Potential solution
This problem could be resolved by forwarding environment variables from tuist to SPM
macOS version
14.4.1
Tuist version
4.9.0
Xcode version
15.3
The text was updated successfully, but these errors were encountered: