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

"Non-optional dependency X of Y not found in dependency tree!?." message #803

Closed
p0nce opened this issue Apr 4, 2016 · 8 comments
Closed

Comments

@p0nce
Copy link
Contributor

p0nce commented Apr 4, 2016

To reproduce:

Output:

Building package dplug:gui in /Users/ponce/Desktop/dplug/
Non-optional dependency gfm:core of dplug:core not found in dependency tree!?.

DUB Version: 12f7389

This used to work on previous DUBs.

@MrSmith33
Copy link
Contributor

I have same problem now with master
Here is vverbose https://gist.github.com/MrSmith33/c81ae99368751ca432844821077e7123

@s-ludwig
Copy link
Member

s-ludwig commented Apr 8, 2016

@MrSmith33: Can you see if your case is fixed with #807? It's hard to tell without a full reproduction case, but I think it possibly is the first case that I fixed there.

s-ludwig added a commit that referenced this issue Apr 8, 2016
Sub package dependencies for which the base package has a fixed path based selection are not collected as dependencies.
s-ludwig added a commit that referenced this issue Apr 8, 2016
@p0nce
Copy link
Contributor Author

p0nce commented Apr 8, 2016

I can confirm this fixed the bug here. Back onto DUB master :)

@MrSmith33
Copy link
Contributor

Didn't fixed my case.
Edit: would be nice if dub had flag to produce test package layout from current project. I.e. package graph in filesystem. Useful for debugging.
Edit 2: Worked around this issue by using latest dependencies.

@p0nce
Copy link
Contributor Author

p0nce commented Apr 11, 2016

I still get this with DUB version 30de609

To reproduce:

Output:

Non-optional dependency gfm:core of dplug:core not found in dependency tree!?.

I've cleanup my DUB state, don't know what to do.

@s-ludwig
Copy link
Member

The PR isn't yet merged, so master is still broken.

@p0nce
Copy link
Contributor Author

p0nce commented Apr 11, 2016

Uh OK. Makes sense :)

s-ludwig added a commit that referenced this issue Apr 26, 2016
Sub package dependencies for which the base package has a fixed path based selection are not collected as dependencies.
s-ludwig added a commit that referenced this issue Apr 26, 2016
s-ludwig added a commit that referenced this issue Apr 27, 2016
Fix #803 - failure to select or collect sub package dependencies
@FreeSlave
Copy link

FreeSlave commented Jun 6, 2016

Still happens to me on travis-CI.
https://travis-ci.org/FreeSlave/standardpaths/jobs/135571541
Also happens on local machine if I delete cached package from .dub/packages.

Note: works fine if I do dub build before running the subpackage.

akrastev pushed a commit to akrastev/hangman that referenced this issue Feb 20, 2017
It seems that 'dub test' fails in travis-ci.
Here we see that adding 'dub build' before 'dub test' will probably fix the problem: dlang/dub#803
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

4 participants