You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Makefile
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ install-reuse: FORCE
50
50
51
51
prepare-static-check: FORCE install-golangci-lint install-modernize install-shellcheck install-go-licence-detector install-addlicense install-reuse
52
52
53
-
# To add additional flags or values, specify the variable in the environment, e.g. `GO_BUILDFLAGS='-tags experimental' make`.
53
+
# To add additional flags or values (before the default ones), specify the variable in the environment, e.g. `GO_BUILDFLAGS='-tags experimental' make`.
54
54
# To override the default flags or values, specify the variable on the command line, e.g. `make GO_BUILDFLAGS='-tags experimental'`.
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -455,11 +455,11 @@ This mechanism cannot be used to define new variables to use in your own rules;
455
455
By default, all accepted variables are empty.
456
456
The only exception is that `GO_BUILDFLAGS` defaults to `-mod vendor` when vendoring is enabled (see below).
457
457
458
-
When invoking the respective targets utilizing the variables, it's possible to either append to the provided values by modifying the calling environment:
458
+
When invoking the respective targets utilizing the variables, it's possible to either prepend to the provided values by modifying the calling environment:
459
459
460
460
```console
461
461
$ GO_BUILDFLAGS="-work -v" make build/go-makefile-maker
462
-
env go build -mod vendor -work -v -ldflags ...
462
+
env go build -work -v -mod vendor -ldflags ...
463
463
```
464
464
465
465
or to override their values by passing the variables as `make` arguments:
Copy file name to clipboardExpand all lines: internal/makefile/makefile.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -214,7 +214,7 @@ endif
214
214
ifisGolang {
215
215
// WARNING: DO NOT CHANGE THIS WITHOUT FIRST UNDERSTANDING THE CONSEQUENCES.
216
216
// All changes have to be okay'd by Stefan Majewsky to avoid breaking setups.
217
-
build.addDefinition("# To add additional flags or values, specify the variable in the environment, e.g. `GO_BUILDFLAGS='-tags experimental' make`.")
217
+
build.addDefinition("# To add additional flags or values (before the default ones), specify the variable in the environment, e.g. `GO_BUILDFLAGS='-tags experimental' make`.")
218
218
build.addDefinition("# To override the default flags or values, specify the variable on the command line, e.g. `make GO_BUILDFLAGS='-tags experimental'`.")
0 commit comments