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
-
Hi! I'm trying to use this GitHub action, but need to have the
CGO_LDFLAGS
env var set when thegolangci-lint
command runs (along with some build flags, which I supply via theargs
option).I've noticed that setting the env like so:
Doesn't seem to work for me. The
go env
output in the GitHub actions UI does suggest thatCGO_LDFLAGS
is 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