We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4609957 commit d0ea7d5Copy full SHA for d0ea7d5
Makefile
@@ -281,7 +281,7 @@ build: $(BUILD)/fmt ## ensure all packages build
281
$Q # compare the current go version with what is in go.mod, and get `{gomod_version}.1` or similar and ensure it builds.
282
$Q GOVERSION="$(shell go env GOVERSION | cut -d. -f1-2)" \
283
MODVERSION="go$(shell grep '^go 1' go.mod | cut -d' ' -f2)"; \
284
- if [[ "$$GOVERSION" != "$$MODVERSION" ]]; then \
+ if [ "$$GOVERSION" != "$$MODVERSION" ]; then \
285
echo "go.mod version \"$$MODVERSION\" is not the same as current go version \"$$GOVERSION\", making sure it builds..."; \
286
echo GOTOOLCHAIN="$$MODVERSION".1 go build ./...; \
287
GOTOOLCHAIN="$$MODVERSION".1 go build ./...; \
0 commit comments