8000 gocommand: honor disabled workspace mode by dajiaohuang · Pull Request #1827 · dominikh/go-tools · GitHub
[go: up one dir, main page]

Skip to content

gocommand: honor disabled workspace mode - #1827

Closed
dajiaohuang wants to merge 1 commit into
dominikh:masterfrom
dajiaohuang:fix/workspace-vendor-gowork-off
Closed

dajiaohuang wants to merge 1 commit into
dominikh:masterfrom
dajiaohuang:fix/workspace-vendor-gowork-off

Conversation

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

WorkspaceVendorEnabled treated the output of go env GOWORK as a path unconditionally. The Go command returns an empty value when workspace mode is disabled because no go.work was found, and off when explicitly disabled. In either case, filepath.Dir followed by a vendor-directory check could incorrectly enable workspace vendoring from the current directory. Return false for those two non-workspace values.

Static review and git diff --check only; no tests added or run per coordinator direction.

@dajiaohuang
Copy link
Copy Markdown
Author

Closing this duplicate after comparing the current patches. The same defect and fix are already covered by #1776. Keeping the existing contribution avoids competing review threads; the contributor branches remain preserved.

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