Skip to content

Fix Go dependency download running in wrong directory in devenv-compat.yml - #23550

Merged
HashWrangler merged 2 commits into
developfrom
fix-devenv-compat-go-download-workdir
Aug 26, 2026
Merged

Fix Go dependency download running in wrong directory in devenv-compat.yml#23550
HashWrangler merged 2 commits into
developfrom
fix-devenv-compat-go-download-workdir

Conversation

@HashWrangler

@HashWrangler HashWrangler commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

What

  1. Adds working-directory: ${{ env.WORKING_DIR }} to the "Download Go dependencies" step in .github/workflows/devenv-compat.yml.
  2. Bumps devenv/go.mod's go directive 1.26.5 -> 1.26.6.

Why

The "Download Go dependencies" step ran go mod download with no working-directory set, so it executed against the repo root's go.mod instead of ${{ env.WORKING_DIR }} (devenv) -- every other run: step in this job already scopes to WORKING_DIR, this one was the outlier.

"Set up Go" resolves its version from devenv/go.mod (go-version-file), but go mod download then read the root go.mod, which requires a newer Go version. Root's directive was bumped 1.26.5 -> 1.26.6 in #23510; devenv/go.mod was still 1.26.5. Once the two diverged, this step started failing:

go: go.mod requires go >= 1.26.6 (running go 1.26.5; GOTOOLCHAIN=local)

This is what's currently failing the Data Feeds v1 Upgrade Test job on the v2.62.0-rc.0 canary run -- unrelated to the curl-pin PRs (#23530, #23531).

With the working-directory fix alone, the download step now correctly reads devenv/go.mod (1.26.5) and would pass -- but that leaves devenv on an older Go directive than root for no reason. Bumping devenv/go.mod to 1.26.6 keeps the two in sync going forward.

Verification

  • python3 -c "import yaml; yaml.safe_load(open('.github/workflows/devenv-compat.yml'))" -- valid YAML.
  • Confirmed every other run: step in this job ("Run compat test", "Attach CI Summary", "Collect Docker container logs") already sets working-directory: ${{ env.WORKING_DIR }}; this brings the download step in line.
  • go build ./... in devenv/ succeeds under golang:1.26.6-bookworm with the bumped directive.

The 'Download Go dependencies' step ran 'go mod download' with no
working-directory, so it executed against the repo root's go.mod
instead of ${{ env.WORKING_DIR }} (devenv), unlike every other run
step in this job. Set up Go via go-version-file: devenv/go.mod, but
go mod download then read the root go.mod -- which requires a newer
Go version than devenv/go.mod does, so the step failed with
'go.mod requires go >= 1.26.6 (running go 1.26.5)' as soon as the
two go.mod files' versions diverged (root bumped by #23510).

Scoping the download to the same working directory as setup-go's
version file fixes the immediate failure and matches every other
step in this job.
@github-actions

Copy link
Copy Markdown
Contributor

👋 HashWrangler, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@github-actions

Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

Keeps devenv's go directive in sync with the root go.mod (bumped in
#23510), now that the download step actually reads devenv/go.mod as
intended. Verified 'go build ./...' succeeds under golang:1.26.6-bookworm.
@HashWrangler
HashWrangler requested a review from a team as a code owner August 25, 2026 20:46
@HashWrangler
HashWrangler requested a review from Tofel August 25, 2026 20:48
@cl-sonarqube-production

Copy link
Copy Markdown

@trunk-io

trunk-io Bot commented Aug 25, 2026

Copy link
Copy Markdown

Static BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@HashWrangler
HashWrangler added this pull request to the merge queue Aug 26, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 26, 2026
@HashWrangler
HashWrangler added this pull request to the merge queue Aug 26, 2026
Merged via the queue into develop with commit 2d2e8c3 Aug 26, 2026
145 checks passed
@HashWrangler
HashWrangler deleted the fix-devenv-compat-go-download-workdir branch August 26, 2026 15:08
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.

3 participants