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

Use Package for locks and installed shards #428

Merged
merged 5 commits into from
Aug 4, 2020

Conversation

waj
Copy link
Member

@waj waj commented Aug 4, 2020

This is the followup from #426. Previously, locks and installed shards were represented as Dependency with a Version requirement. But that forces to do castings and checks on many places. With this change the code is simplified, and the check for invalid dependency is only done while parsing.

src/dependency.cr Outdated Show resolved Hide resolved
src/lock.cr Show resolved Hide resolved
src/molinillo_solver.cr Outdated Show resolved Hide resolved
src/package.cr Show resolved Hide resolved
@bcardiff bcardiff added this to the v0.12.0 milestone Aug 4, 2020
@waj waj merged commit 46308bf into crystal-lang:master Aug 4, 2020
@waj waj deleted the rework/package branch August 4, 2020 22:18
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

2 participants