Replies: 1 comment
-
|
The third iteration you've provided appears to be what you're looking for, though the I'm also noticing that the CircleCI system variables have a gotcha, that the If neither of those are the case:
This is correct and how passthroughs work. Our tests show that things are working as expected, but its possible there's a bug. We would need a reproduction to investigate. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
So after the change from this PR #8182, environment variables in CI are no longer passing through to the Turbo pipeline.
Here are some iterations of the
turbo.jsonconfiguration I've tried:None work. 😢
And here's an iteration of the
package.jsonscriptsconfig I tried, that worked! 🪂 :There might be an issue with the functionality or the documentation here https://turbo.build/repo/docs/crafting-your-repository/using-environment-variables#environment-modes because the documentation says that
envorglobalEnvare considered but there's a section on passthrough variables https://turbo.build/repo/docs/crafting-your-repository/using-environment-variables#passthrough-variables that's not mentioned in the CI vendor compat section https://turbo.build/repo/docs/crafting-your-repository/using-environment-variables#ci-vendor-compatibility or anywhere else that bothenvandglobalEnvare mentioned... which doesn't make any sense because that's what I need! The only place where the pass through config options are mentioned again are https://turbo.build/repo/docs/reference/run#strict. The docs are very inconsistent on this.These variables don't actually affect the cache ... so I just need them to pass through. If they're accounted for in these pass through configs, then I expect that they fall under the
strictmode checks too as https://turbo.build/repo/docs/reference/run#strict indicates?Going through the escape hatch and setting
--env-mode=loosecan't be the only option can it?Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions