ci: run lint on all platforms - #498
Conversation
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe pull request enforces LF line endings for Go files and expands the lint workflow from Ubuntu to Ubuntu, Windows, and macOS with fail-fast disabled. ChangesCross-platform lint configuration
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@nightcityblade Please stop closing the PR - you seems to something wrong on your side. When fixing an issue you should amend the relevant commit and force push. There no need to delete the branch on your side (which will close the PR). |
|
You're right—sorry for the churn. I amended from a depth-1 clone without first restoring the parent history, which temporarily produced an unrelated root commit and caused GitHub to auto-close #497. I repaired the branch to a single commit directly on |
Cloning with depth=1 is good for quick clone in CI when you don't need history. For development you always want a full clone. You can probably find a tutorial on how to work with github projects or ask AI for help. |
6faeac3 to
8b80eab
Compare
|
@nightcityblade The windows lint fails with 3 files: Converting newlines in go files in .gitattributes may solve this, but I think this will hide the real issue. Try to compare these files to other files and find why we have an issue in these files. It is also possible that golangci-lint does not show all errors, but more likely these files are different from other files in some way. |
8b80eab to
0852168
Compare
|
@nightcityblade you closed this PR again - we already discuss this. Please do not open a new PR. Find how to reopen this PR if you want to continue working on this. |
|
I’m sorry—I repeated the shallow-history mistake while amending the Windows follow-up, which auto-closed this PR. I immediately restored the branch to the correct single commit and two-file diff, but GitHub would not reopen this PR after pinning the unrelated root SHA. The recovered replacement is #501. The Windows failure is caused by CRLF conversion across all Go files; only three appeared because |
Do a proper checkout, rebase you changes on the new checkout and force push to the same branch. You should be able to reopen the PR after that. |
|
I restored I also retried reopening #498, but GitHub still returns |
|
@nightcityblade no way to reopen this pull request. I created a new one from your fork. |
Fixes #191
Supersedes #497, which GitHub auto-closed while its head history was being repaired after the Windows lint failure.
Summary
Testing