Makefile: make add EXTRA_GOFLAG to GOFLAGS #605
No reviewers
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#605
Loading…
Reference in New Issue
No description provided.
Delete Branch "jtojnar/api:extra-goflags"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Some commands (
go generate
) only support takingGOFLAGS
from the environment but settingGOFLAGS
environment variable is ineffectual because the variable of the same name defined in the Makefile shadows it.We also have a custom
EXTRA_GOFLAGS
variable but we only pass that togo build
.Let’s add
EXTRA_GOFLAGS
to theGOFLAGS
variable in the Makefile to allow passing custom flags to Go throughEXTRA_GOFLAGS
environment variable.Checklist
make do-the-swag
)I'll merge once CI passes.