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

ignore locally installed packages when importing #22

Merged
merged 2 commits into from
Feb 17, 2024
Merged

ignore locally installed packages when importing #22

merged 2 commits into from
Feb 17, 2024

Conversation

ToBinio
Copy link
Contributor

@ToBinio ToBinio commented Feb 16, 2024

This PR resolves #21

Currently, I kept the source origin as a String since I wasn't able to find a list of all possible variants and I didn't want to create an enum with path, registry, and other

I also have overwritten the shorthand for --with-local since 'w' feels a bit off

Copy link
Owner

@PaulDance PaulDance left a comment

Choose a reason for hiding this comment

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

Hey, thanks for the additional contribution!

A bunch of small things to address, but the core of it is good.

Corresponding integration tests should be added as well. The tests/import.rs module includes already includes a few of them. You should therefore be able to relatively easily write the various combinations needed.

src/cli.rs Outdated Show resolved Hide resolved
src/config/cargo_crates_toml.rs Outdated Show resolved Hide resolved
src/config/cargo_crates_toml.rs Outdated Show resolved Hide resolved
src/config/cargo_crates_toml.rs Outdated Show resolved Hide resolved
src/config/cargo_crates_toml.rs Outdated Show resolved Hide resolved
src/config/cargo_crates_toml.rs Outdated Show resolved Hide resolved
src/config/cargo_crates_toml.rs Show resolved Hide resolved
src/config/cargo_crates_toml.rs Show resolved Hide resolved
src/config/cargo_crates_toml.rs Show resolved Hide resolved
src/cli.rs Outdated Show resolved Hide resolved
Copy link
Owner

@PaulDance PaulDance 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 quick and quality iteration! A few minor things left and we should be good!

src/config/cargo_crates_toml.rs Outdated Show resolved Hide resolved
tests/common/mod.rs Outdated Show resolved Hide resolved
src/config/cargo_crates_toml.rs Outdated Show resolved Hide resolved
tests/fixtures/ship/validate_ship_manynewer_update.stderr Outdated Show resolved Hide resolved
Copy link
Owner

@PaulDance PaulDance left a comment

Choose a reason for hiding this comment

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

Thanks a bunch!

@PaulDance PaulDance merged commit 6adbee1 into PaulDance:master Feb 17, 2024
1 check passed
@ToBinio ToBinio deleted the import-locally branch February 17, 2024 18:15
@PaulDance PaulDance added this to the v0.6.0 milestone Feb 26, 2024
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.

ignore locally installed packages when importing
2 participants