-
Notifications
You must be signed in to change notification settings - Fork 0
fix: resolve CI failures from v4 launch #2
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
Changes from all commits
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 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -46,7 +46,8 @@ jobs: | |||||||||
| - name: Tidy check | ||||||||||
| run: | | ||||||||||
| go mod tidy | ||||||||||
| git diff --exit-code go.mod go.sum | ||||||||||
| git diff --exit-code go.mod | ||||||||||
| test ! -f go.sum || git diff --exit-code go.sum | ||||||||||
|
||||||||||
| test ! -f go.sum || git diff --exit-code go.sum | |
| if git ls-files --error-unmatch go.sum >/dev/null 2>&1; then | |
| git diff --exit-code -- go.sum | |
| fi |
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.
Same issue as in
lint.yml: checking file existence will miss the case where a trackedgo.sumgets deleted bygo mod tidy(since the file won’t exist and the diff check is skipped). Prefer checking whethergo.sumis tracked, then diff it (which will report deletions), while skipping entirely when it’s not tracked in the repo.