Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How are we supposed to set CGO_ENABLED=1 with this action?#1195

Unanswered
shadiramadan asked this question inQ&A
Discussion options

I have a build that requiresCGO_ENABLED to be set to lint properly.
On my local exporting this var works just fine with the CLI.

I tried setting it with:

env:CGO_ENABLED:1

on the action step but that did not enable CGO.

How are we supposed to enable CGO?

Possibly related:#538

You must be logged in to vote

Replies: 1 comment

Comment options

ldez
Mar 13, 2025
Maintainer

By default, this action uses the binary version of golangci-lint, soCGO_ENABLED or any env var related to cgo build will have no effect.

Why do you need to useCGO_ENABLED to run golangci-lint?

golangci-lint doesn't needCGO_ENABLED to lint cgo code.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@shadiramadan@ldez

[8]ページ先頭

©2009-2025 Movatter.jp