Skip to content

scripts: remove deprecated GO111MODULE=on#8789

Closed
mr-raj12 wants to merge 1 commit intothanos-io:mainfrom
mr-raj12:scripts/remove-go111module
Closed

scripts: remove deprecated GO111MODULE=on#8789
mr-raj12 wants to merge 1 commit intothanos-io:mainfrom
mr-raj12:scripts/remove-go111module

Conversation

@mr-raj12
Copy link
Copy Markdown

@mr-raj12 mr-raj12 commented Apr 22, 2026

What

Remove the GO111MODULE=on inline prefix from two shell scripts:

  • scripts/genproto.sh
  • scripts/insecure_grpcurl_series.sh

Why

GO111MODULE has been ignored since Go 1.21 - setting it has no effect. This repo declares go 1.26.0 in go.mod, so the prefix is dead code in both scripts.

Module mode has been the default since Go 1.16, and the env var was fully deprecated in Go 1.21. Leaving it around creates a false impression that it is doing something.

References

GO111MODULE is ignored on Go 1.21+ and this repo declares go 1.26.0 in
go.mod. The inline prefix on go list calls in genproto.sh and
insecure_grpcurl_series.sh is dead code - remove it.

Signed-off-by: Mrityunjay Raj <mr.raj.earth@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants