-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Fix: Rebuild Go stdlib after installing gotip to prevent version mismatch. #7667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
abc4789
e3030bd
15c3dfd
0ffe69f
407a067
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -14,7 +14,8 @@ permissions: | |||||||||||||
|
|
||||||||||||||
| jobs: | ||||||||||||||
| unit-tests-go-tip: | ||||||||||||||
| if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-all-workflows') | ||||||||||||||
| # Temporarily removed condition to test in PR - will restore before merge | ||||||||||||||
| # if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-all-workflows') | ||||||||||||||
| permissions: | ||||||||||||||
| checks: write | ||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||
|
|
@@ -30,6 +31,7 @@ jobs: | |||||||||||||
| uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0 | ||||||||||||||
| with: | ||||||||||||||
| go-version: 1.25.x | ||||||||||||||
| cache: false | ||||||||||||||
|
|
||||||||||||||
| - name: Install test deps | ||||||||||||||
| # even though the same target runs from test-ci, running it separately makes for cleaner log in GH workflow | ||||||||||||||
|
|
@@ -40,13 +42,18 @@ jobs: | |||||||||||||
| with: | ||||||||||||||
| gh_token: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||
|
|
||||||||||||||
| - name: Clean Go cache for gotip | ||||||||||||||
| - name: Clean Go cache and rebuild stdlib for gotip | ||||||||||||||
| run: | | ||||||||||||||
| go clean -cache | ||||||||||||||
| go clean -modcache | ||||||||||||||
yurishkuro marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||
| env: | ||||||||||||||
| GOTOOLCHAIN: auto | ||||||||||||||
|
|
||||||||||||||
|
Comment on lines
+49
to
+51
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Setting env:
GOTOOLCHAIN: local
Suggested change
Spotted by Graphite Agent |
||||||||||||||
|
|
||||||||||||||
| - name: Run unit tests | ||||||||||||||
| run: make test-ci | ||||||||||||||
| env: | ||||||||||||||
| GOTOOLCHAIN: auto | ||||||||||||||
|
|
||||||||||||||
| - name: Lint | ||||||||||||||
| run: echo skip linting on Go tip | ||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
according to me the
cache: falsesetting prevents the go1.25.4 module cache from persisting and interfering with gotip's isolated environment.