8000 Skip workspace vendor detection when GOWORK is off by dajiaohuang · Pull Request #1776 · dominikh/go-tools · GitHub
[go: up one dir, main page]

Skip to content

Skip workspace vendor detection when GOWORK is off - #1776

Closed
dajiaohuang wants to merge 3 commits into
dominikh:masterfrom
dajiaohuang:fix/gowork-off-vendor-check
Closed

dajiaohuang wants to merge 3 commits into
dominikh:masterfrom
dajiaohuang:fix/gowork-off-vendor-check

Conversation

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

WorkspaceVendorEnabled treated GOWORK=off as a relative work file and could infer vendoring from a vendor directory in the current directory. Skip workspace vendor checks when GOWORK is empty or off, and add focused coverage. Validation: go test ./internal/xtools-internal/gocommand; git diff --check.

Scope review and current validation

Removed the unrelated generic-instantiation change and its buildir fixture from this PR through a follow-up commit. That fix remains separately tracked in #1764; this PR now contains only its stated change and relevant tests.

go test ./internal/xtools-internal/gocommand passed all 12 tests.
git diff --check passed. Earlier validation above is historical; the checks in this section describe the narrowed head. No live-service or all-CI-passing claim.

@dajiaohuang dajiaohuang closed this Oct 8, 2026
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