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

chore: test ignored directories correctly #149

Merged
merged 1 commit into from
Jan 14, 2025
Merged

chore: test ignored directories correctly #149

merged 1 commit into from
Jan 14, 2025

Conversation

bnjbvr
Copy link
Owner

@bnjbvr bnjbvr commented Jan 14, 2025

The previous test wasn't testing properly ignored files: indeed, the .gitignore for this very repository (that of cargo-machete) would be taken into account, instead of the one we wanted.

To make this clearer, the code now uses an .ignore file in the main directory, and a special option is introduced for testing purposes, to make it possible to disable respecting .gitignore (while respecting other ignore options).

Fixes #140.

The previous test wasn't testing properly ignored files: indeed, the
`.gitignore` for this very repository (that of cargo-machete) would be
taken into account, instead of the one we wanted.

To make this clearer, the code now uses an `.ignore` file in the main
directory, and a special option is introduced for testing purposes, to
make it possible to disable respecting `.gitignore` (while respecting
other ignore options).

Fixes #140.
@bnjbvr bnjbvr merged commit e550550 into main Jan 14, 2025
4 checks passed
@bnjbvr bnjbvr deleted the ignore-testing branch January 14, 2025 20:16
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.

Test failure for 0.7.0 on Arch Linux
1 participant