Fix Go cache in CI workflows by adding cache-dependency-path#4575
Merged
Conversation
✅ Deploy Preview for kptdocs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Signed-off-by: Aravindhan Ayyanathan <aravindhan.a@est.tech>
ff51537 to
bd59a58
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
This PR updates multiple GitHub Actions workflows to improve Go module caching behavior and refresh copyright headers.
Changes:
- Add
cache-dependency-pathpointing atgo.sumforactions/setup-gocaching. - Update/normalize copyright headers (years/punctuation).
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/verifyContent.yml | Add Go cache dependency path; update header year list. |
| .github/workflows/release.yml | Add Go cache dependency path; update header year list. |
| .github/workflows/live-e2e.yml | Add Go cache dependency path; update header year list. |
| .github/workflows/go.yml | Add Go cache dependency path in multiple jobs; adjust header punctuation. |
| .github/workflows/e2eEnvironment.yml | Add Go cache dependency path; update header year list. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Aravindhan Ayyanathan <aravindhan.a@est.tech>
271fef1 to
69aee7f
Compare
liamfallon
approved these changes
Jun 10, 2026
efiacor
approved these changes
Jun 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix Go cache in CI workflows by adding cache-dependency-path
Description
The
actions/setup-gocache has been failing silently across all CI workflows with:This happens because kpt checks out to a custom GOPATH (
go/src/github.com/kptdev/kpt/) rather than the repo root, sosetup-gocan't auto-discover thego.modfile for cache key generation.Fix
Added
cache-dependency-path: go/src/github.com/kptdev/kpt/go.sumto allsetup-gosteps that havecache: true.Workflows updated
go.yml(2 jobs)e2eEnvironment.ymllive-e2e.ymlverifyContent.ymlrelease.ymlSkipped
verifyDocumentation.yml(hascache: false).AI Disclosure