Skip to content
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

fix: file path normalization on Windows #15

Merged
merged 3 commits into from
Nov 6, 2023

Conversation

Genteure
Copy link
Contributor

@Genteure Genteure commented Nov 6, 2023

Describe the pull request

Fix file path normalization on Windows.

Added windows-latest to the Lint & Test workflow to test on Windows. strategy.fail-fast is set to false because currently the run time is pretty short (less than 2 minutes), and when some tests are failing on one OS it's helpful to know whether they are failing on the other OS too.
Test is moved before Lint to have a faster feedback loop for functionality regardless if the code is formatted correctly.

Fix #13

Why

link validation was not working on Windows.

How

Instead of only splitting the path by /, it now split paths by / or \.

Screenshots

N/A

Copy link
Owner

@HiDeoo HiDeoo left a comment

Choose a reason for hiding this comment

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

Thanks for the report and the pull request, super appreciated 🙌

The changes to the integration workflow makes total sense, I just increased the test timeout as this seems to take a bit longer on a Windows vm and fix Prettier complaining about Windows line endings.

@HiDeoo HiDeoo merged commit ba1be29 into HiDeoo:main Nov 6, 2023
@Genteure Genteure deleted the fix/file-path-windows branch November 6, 2023 08:52
github-merge-queue bot referenced this pull request in knope-dev/knope Nov 6, 2023
)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[starlight-links-validator](https://togithub.com/HiDeoo/starlight-links-validator)
| [`0.4.1` ->
`0.4.2`](https://renovatebot.com/diffs/npm/starlight-links-validator/0.4.1/0.4.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/starlight-links-validator/0.4.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/starlight-links-validator/0.4.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/starlight-links-validator/0.4.1/0.4.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/starlight-links-validator/0.4.1/0.4.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>HiDeoo/starlight-links-validator
(starlight-links-validator)</summary>

###
[`v0.4.2`](https://togithub.com/HiDeoo/starlight-links-validator/releases/tag/v0.4.2)

[Compare
Source](https://togithub.com/HiDeoo/starlight-links-validator/compare/v0.4.1...v0.4.2)

#####    🐞 Bug Fixes

- File path normalization on Windows  -  by
[@&#8203;Genteure](https://togithub.com/Genteure) and
[@&#8203;HiDeoo](https://togithub.com/HiDeoo) in
[https://github.com/HiDeoo/starlight-links-validator/issues/15](https://togithub.com/HiDeoo/starlight-links-validator/issues/15)
[<samp>(ba1be)</samp>](https://togithub.com/HiDeoo/starlight-links-validator/commit/ba1be29)
- Validate reference-style links  -  by
[@&#8203;HiDeoo](https://togithub.com/HiDeoo)
[<samp>(9a9f2)</samp>](https://togithub.com/HiDeoo/starlight-links-validator/commit/9a9f2fb)

#####     [View changes on
GitHub](https://togithub.com/HiDeoo/starlight-links-validator/compare/v0.4.1...v0.4.2)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **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/knope-dev/knope).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40Ni4wIiwidXBkYXRlZEluVmVyIjoiMzcuNDYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@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.

Incorrect page paths on Windows
2 participants