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

WIP: Remove only local sources #163

Closed
wants to merge 4 commits into from
Closed

Conversation

gilescope
Copy link

A tidier way to remove any local sources before trying to vendor.
(If you're ok with the idea give me a thumbs up and I'll write some tests to cover it.)

@ChrisGreenaway
Copy link
Collaborator

Could you add some more tests please?

Also I am keen to keep the code as robust as possible. If the set of valid source types evolves over time, then a future source type might be misclassified as ignorable or not. Can you be specific in the code as to how all source types are handled and fail if an unexpected source type is found?

@gilescope
Copy link
Author

Absolutely. Will do.

@gilescope gilescope changed the title Remove only local sources WIP: Remove only local sources May 26, 2020
@gilescope
Copy link
Author

Am mulling over a good way to do the tests... I can redirect crates.io to the crates.io ending in .git in a test but proving that it was any different .... ah maybe I could peek into the generated lock file. Bingo that's what I was looking for.

@gilescope
Copy link
Author

FYI cargo vendor calls this option --respect-source-config

@gilescope gilescope closed this Feb 7, 2021
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.

2 participants