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 validation in production mode for dependencies referenced by commit #340

Merged
merged 1 commit into from
Mar 31, 2020

Conversation

waj
Copy link
Member

@waj waj commented Mar 30, 2020

This is what @RX14 said on a previous PR (#337 (comment))

The logic was indeed wrong and I fixed it and added another test. I changed the order of the tests in the validate method because the solver adds a version on every lock, even for those with a commit here.

Also, because the validation functions are now used only in production mode, the logic is simplified and they check only for exact match, version or commit.

@waj waj merged commit fd7f6bd into crystal-lang:master Mar 31, 2020
@waj waj deleted the fix/validate-locked-commit branch March 31, 2020 13:26
@RX14
Copy link
Contributor

RX14 commented Mar 31, 2020

Thanks!

taylor pushed a commit to vulk/shards that referenced this pull request Aug 11, 2020
f-fr pushed a commit to f-fr/shards that referenced this pull request Jan 2, 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.

None yet

4 participants