fix: properly normalize Windows paths, add windows test runner#242
Merged
fix: properly normalize Windows paths, add windows test runner#242
Conversation
e04b89f to
801e419
Compare
kzantow
commented
May 17, 2024
| @@ -0,0 +1 @@ | |||
| * text eol=lf | |||
Collaborator
Author
There was a problem hiding this comment.
This seems logical, since go fmt produces only LF endings and if the .go files get checked out on Windows with CRLF, you get "every file changed" when running go fmt. This also solves the package verification code test issues, because the line endings don't change there, either.
Signed-off-by: Keith Zantow <kzantow@gmail.com>
801e419 to
99f2750
Compare
Signed-off-by: Keith Zantow <kzantow@gmail.com>
f32cfb1 to
61ccee8
Compare
Signed-off-by: Keith Zantow <kzantow@gmail.com>
1c19a0a to
fdfed09
Compare
Signed-off-by: Keith Zantow <kzantow@gmail.com>
manifestori
approved these changes
May 20, 2024
manifestori
left a comment
There was a problem hiding this comment.
much better then my quick workaround, thank you for resolving this.
LGTM
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Collaborator
Author
|
Thanks @manifestori! I'll try to get a release done this week, but in the meantime are you able to use |
|
yes thank you :) |
cuixq
referenced
this pull request
in google/osv-scanner
Jul 2, 2024
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/spdx/tools-golang](https://togithub.com/spdx/tools-golang) | `v0.5.4` -> `v0.5.5` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>spdx/tools-golang (github.com/spdx/tools-golang)</summary> ### [`v0.5.5`](https://togithub.com/spdx/tools-golang/releases/tag/v0.5.5) [Compare Source](https://togithub.com/spdx/tools-golang/compare/v0.5.4...v0.5.5) #### What's Changed - fix: properly normalize Windows paths, add windows test runner by [@​kzantow](https://togithub.com/kzantow) in [https://github.com/spdx/tools-golang/pull/242](https://togithub.com/spdx/tools-golang/pull/242) - fix: panic if JSON relationship array contains null by [@​kzantow](https://togithub.com/kzantow) in [https://github.com/spdx/tools-golang/pull/239](https://togithub.com/spdx/tools-golang/pull/239) - chore: provide a clearer error when using an invalid Originator by [@​LaurentGoderre](https://togithub.com/LaurentGoderre) in [https://github.com/spdx/tools-golang/pull/246](https://togithub.com/spdx/tools-golang/pull/246) #### New Contributors - [@​LaurentGoderre](https://togithub.com/LaurentGoderre) made their first contribution in [https://github.com/spdx/tools-golang/pull/246](https://togithub.com/spdx/tools-golang/pull/246) **Full Changelog**: spdx/tools-golang@v0.5.4...v0.5.5 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 6am on monday" in timezone Australia/Sydney, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/google/osv-scanner). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: Xueqin Cui <72771658+cuixq@users.noreply.github.com>
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.
Since there is Windows-specific code, the tests should also run on Windows.
Fixes: #117