When using Go workspaces with Go 1.18, bingo fails with errors like:
(re)installing /Users/nacx/go/bin/goimports-v0.1.5
go: -mod may only be set to readonly when in workspace mode, but it is set to "mod"
Remove the -mod flag to use the default readonly value,
or set GOWORK=off to disable workspace mode.
make: *** [/Users/nacx/src/ngac/scripts//../.bingo/Variables.mk:30: /Users/nacx/go/bin/goimports-v0.1.5] Error 1
This PR always sets the GOWORK=off environment variable to disable workspaces for the Bingo commands. This should be safe as Bingo is scoped to its own folder and does not affect the normal project build.
When using Go workspaces with Go 1.18, bingo fails with errors like:
This PR always sets the
GOWORK=off
environment variable to disable workspaces for the Bingo commands. This should be safe as Bingo is scoped to its own folder and does not affect the normal project build.