turbo
8ef6aaf2 - fix: Correct Go workspace resolution and task caching (#13966)

Commit
74 days ago
fix: Correct Go workspace resolution and task caching (#13966) ## Summary - Traverse Go's MVS-selected module versions when computing external dependency closures so transitive dependency changes invalidate the correct tasks. - Resolve local replacements using Go's selected module metadata, respecting workspace overrides and version-specific directives. Validate canonical source directories rather than trusting matching module names, and reuse the selected metadata for hashing. - Preserve Go configuration and behavior-changing environment variables during strict-mode execution, including custom `GOENV` settings. - Disable implicit caching for unclassified arguments and effective `GOFLAGS` that can introduce untracked inputs or additional outputs, including overlays, coverage reports, and alternate build modes. - Place generated build output flags before user arguments and package patterns before `go test -args`. - Add regression coverage for replacement resolution, dependency invalidation, environment projection, cache safety, and native command execution. ## Scope Import-only workspace relationships without corresponding `go.mod` requirements are intentionally excluded. Per maintainer direction, the boundaries command will be the guard for that case; this PR does not implement that guard. Co-authored-by: vercel-gh-bot-2[bot] <282331341+vercel-gh-bot-2[bot]@users.noreply.github.com>
Parents
Loading