Skip to content

fix: properly normalize Windows paths, add windows test runner#242

Merged
kzantow merged 5 commits intospdx:mainfrom
kzantow-anchore:chore/add-windows-test-runner
May 20, 2024
Merged

fix: properly normalize Windows paths, add windows test runner#242
kzantow merged 5 commits intospdx:mainfrom
kzantow-anchore:chore/add-windows-test-runner

Conversation

@kzantow
Copy link
Copy Markdown
Collaborator

@kzantow kzantow commented May 16, 2024

Since there is Windows-specific code, the tests should also run on Windows.

Fixes: #117

@kzantow kzantow force-pushed the chore/add-windows-test-runner branch 2 times, most recently from e04b89f to 801e419 Compare May 17, 2024 15:39
@@ -0,0 +1 @@
* text eol=lf
Copy link
Copy Markdown
Collaborator Author

@kzantow kzantow May 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
@kzantow kzantow force-pushed the chore/add-windows-test-runner branch from f32cfb1 to 61ccee8 Compare May 17, 2024 17:34
Signed-off-by: Keith Zantow <kzantow@gmail.com>
@kzantow kzantow force-pushed the chore/add-windows-test-runner branch from 1c19a0a to fdfed09 Compare May 18, 2024 19:41
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Copy link
Copy Markdown

@manifestori manifestori left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

much better then my quick workaround, thank you for resolving this.

LGTM

Signed-off-by: Keith Zantow <kzantow@gmail.com>
@kzantow kzantow merged commit 282609e into spdx:main May 20, 2024
@kzantow kzantow deleted the chore/add-windows-test-runner branch May 20, 2024 14:48
@kzantow
Copy link
Copy Markdown
Collaborator Author

kzantow commented May 20, 2024

Thanks @manifestori! I'll try to get a release done this week, but in the meantime are you able to use main?

@kzantow kzantow changed the title chore: add windows test runner fix: properly normalize Windows paths, add windows test runner May 20, 2024
@manifestori
Copy link
Copy Markdown

yes thank you :)

cuixq referenced this pull request in google/osv-scanner Jul 2, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](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` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fspdx%2ftools-golang/v0.5.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fspdx%2ftools-golang/v0.5.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fspdx%2ftools-golang/v0.5.4/v0.5.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fspdx%2ftools-golang/v0.5.4/v0.5.5?slim=true)](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
[@&#8203;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
[@&#8203;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
[@&#8203;LaurentGoderre](https://togithub.com/LaurentGoderre) in
[https://github.com/spdx/tools-golang/pull/246](https://togithub.com/spdx/tools-golang/pull/246)

#### New Contributors

- [@&#8203;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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tests to CI for Windows (and maybe others)

2 participants