8000 Fix the testfiles module mode environment variable by dajiaohuang · Pull Request #1796 · dominikh/go-tools · GitHub
[go: up one dir, main page]

Skip to content

Fix the testfiles module mode environment variable - #1796

Open
dajiaohuang wants to merge 4 commits into
dominikh:masterfrom
dajiaohuang:fix/testfiles-go111module-env
Open

dajiaohuang wants to merge 4 commits into
dominikh:masterfrom
dajiaohuang:fix/testfiles-go111module-env

Conversation

@dajiaohuang
dajiaohuang commented Oct 1, 2026 •
Copy link
Copy Markdown

testfiles.LoadPackages appended GO111MODULES=on, which is ignored by the go command. Correct the variable name so package-loading tests reliably run in module mode.

Review update: the unrelated generic-instantiation change and its fixture were removed through a normal follow-up commit; #1764 tracks that fix separately. Current-head validation: go test ./internal/xtools-internal/testfiles -run TestLoadPackagesForcesModuleMode (one test) passed; git diff --check passed. Prior validation text above is historical unless repeated here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0