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

Remove unnecessary require to break loop #375

Merged
merged 2 commits into from
May 4, 2020

Conversation

straight-shoota
Copy link
Member

There was a require loop resolvers/resolver > spec > config > info > lock > package > resolvers/* which would cause code like the following to fail:

require "./src/resolvers/git"
require "./src/resolvers/path"
In src/resolvers/path.cr:4:24

 4 | class PathResolver < Resolver
                          ^-------
Error: undefined constant Resolver

Lock doesn't depend on Package, so there's no need to require it there.

@jhass
Copy link
Member

jhass commented May 2, 2020

Mmh, CI seems to disagree? :)

@straight-shoota
Copy link
Member Author

Yeah, it's more messed up. Now it should be good.

@waj waj merged commit 294c4f1 into crystal-lang:master May 4, 2020
@straight-shoota straight-shoota deleted the fix/require-order branch May 4, 2020 20:37
@bcardiff bcardiff added this to the v0.11.0 milestone May 27, 2020
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants