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: stop using path.posix #590

Merged
merged 2 commits into from Aug 5, 2023
Merged

fix: stop using path.posix #590

merged 2 commits into from Aug 5, 2023

Conversation

risu729
Copy link
Contributor

@risu729 risu729 commented Aug 5, 2023

Fixes #589

The usage of path.posix causes the error because it does not handle the drive name in Windows correctly, so stop using it.
However, globby or fast-glob, its dependent, only supports forward-slash so replace double back slashes with it.

https://github.com/mrmlnc/fast-glob#pattern-syntax

@azu azu added the Type: Bug Bug or Bug fixes label Aug 5, 2023
@azu
Copy link
Member

azu commented Aug 5, 2023

We already have secretlint ignore testing, but this test did not executed on Windows.
https://github.com/secretlint/secretlint/tree/master/packages/secretlint/test/snapshots/secretlintignore
https://github.com/secretlint/secretlint/blob/master/packages/secretlint/test/cli.test.ts

I merged the broken tests before merging this PR.

@azu azu mentioned this pull request Aug 5, 2023
@azu
Copy link
Member

azu commented Aug 5, 2023

I've updated this PR branch.
Probably, CI should pass the tests on Windows CI.

@azu
Copy link
Member

azu commented Aug 5, 2023

current snapshot testing is broken.
I'll fix tests.

I'm going to merge them for now.

@azu azu merged commit 45126d3 into secretlint:master Aug 5, 2023
3 of 9 checks passed
@github-actions github-actions bot mentioned this pull request Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug or Bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.secretlintignore does not work in Windows
2 participants