Having trouble setting an env variable #538
Unanswered
patrickdevivo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm trying to use this GitHub action, but need to have the
CGO_LDFLAGSenv var set when thegolangci-lintcommand runs (along with some build flags, which I supply via theargsoption).I've noticed that setting the env like so:
Doesn't seem to work for me. The
go envoutput in the GitHub actions UI does suggest thatCGO_LDFLAGSis set properly, however the lint step fails with an error that suggests it was not set when the command runs (it times out, which is the same behavior on my machine when that particular flag is not set).Looking in the code, I see this line which suggests to me, according to the docs here that the process should just inherit the env var, but perhaps I'm missing something.
Does anyone have any ideas or may have encountered this before?
Thanks so much
Beta Was this translation helpful? Give feedback.
All reactions