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

Bug in logic of asdf :mvn resolution #66

Open
alanruttenberg opened this issue Sep 20, 2017 · 1 comment
Open

Bug in logic of asdf :mvn resolution #66

alanruttenberg opened this issue Sep 20, 2017 · 1 comment

Comments

@alanruttenberg
Copy link
Collaborator

If you don't explicitly provide a repository as part of the :mvn specification in a sysdef, resolve-dependencies is called (from resolve) with repositories nil.

Then, in resolve-dependencies, since repositories-p is t and repositories is nil, the collect-request doesn't get a repository added to it. Subsequently, if the dependency isn't already downloaded, the resolution fails.

I don't understand the intended behavior if repositories-p is t and repositories is nil. I don't see anything documented about this. If repositories is nil, I think the default repository should be used. Failing that, resolve shouldn't pass the repositories argument, if nil.

That I wasn't adding the repository to the collect request is why my mvn-module was failing in the same way. Patch for that forthcoming.

alanruttenberg added a commit to alanruttenberg/abcl that referenced this issue Sep 20, 2017
…d a repository to the collect request, and patches resolves to not call resolve-dependencies with :repositories nil if repositories is nil
alanruttenberg added a commit to alanruttenberg/abcl that referenced this issue Sep 20, 2017
…d a repository to the collect request, and patches resolves to not call resolve-dependencies with :repositories nil if repositories is nil
@alanruttenberg
Copy link
Collaborator Author

alanruttenberg commented Sep 20, 2017

Also, it looks like, at least before the offered patch, that *mvn-default-repository* was being set to nil somewhere, even after (ensure-remote-repository) was setting it.

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

No branches or pull requests

1 participant