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

Bump lock version #400

Merged
merged 2 commits into from
Jun 3, 2020
Merged

Bump lock version #400

merged 2 commits into from
Jun 3, 2020

Conversation

waj
Copy link
Member

@waj waj commented Jun 2, 2020

This upgrades the version in shards.lock to 2.0, because it effectively cannot be used by previous versions (git refs are stored as part of the version metadata).


unless key == "version" && value == "1.0"
unless key == "version" && version.in?("1.0", "2.0")
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd extract those into a VALID_VERSIONS = {"1.0", "2.0"} constant.

@waj waj added this to the v0.11.0 milestone Jun 3, 2020
@waj waj merged commit 8435f7e into crystal-lang:master Jun 3, 2020
@waj waj deleted the upgrade-lock-version branch June 3, 2020 17:47
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

3 participants