-
Notifications
You must be signed in to change notification settings - Fork 222
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
Task dependencies via needs
is broken when modules have namespace separators
#1188
Comments
ferki
added a commit
that referenced
this issue
Jan 19, 2018
ferki
added a commit
that referenced
this issue
Jan 19, 2018
ferki
added a commit
that referenced
this issue
Apr 21, 2018
alip
pushed a commit
to adjust/Rex
that referenced
this issue
Feb 7, 2020
alip
pushed a commit
to adjust/Rex
that referenced
this issue
Feb 7, 2020
alip
pushed a commit
to adjust/Rex
that referenced
this issue
Aug 10, 2020
alip
pushed a commit
to adjust/Rex
that referenced
this issue
Aug 10, 2020
alip
pushed a commit
to adjust/Rex
that referenced
this issue
Aug 12, 2020
alip
pushed a commit
to adjust/Rex
that referenced
this issue
Aug 12, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As reported via a comment by @alip, calling
needs
seem to be broken at least for some use cases, and it at least happens since merging 7cf0ca4 (to fix #1066 on #1157).I'm opening this issue in order to describe some details based on my own debugging, and also to collect more feedback before applying a fix.
I've used the following code while trying to replicate the reported behavior:
This tests needing tasks from the same namespace, from a "simple" namespace, and from a "nested" namespace, as well as needing a task in the main namespace from one of the
use
d modules.Trying to execute the
test
task shows the following (-qw
is only used for reduced output before copy-pasting):Which indicates that the originally mentioned use cases of
are working correctly, but it fails to handle cases when the module contains name separator(s).
Applying the following hotfix converts Perl's module namespace separators to Rex task namespace separators, and seems to solve the above for me:
edit: of course, a proper fix should contain tests for the "nested" case too :)
The text was updated successfully, but these errors were encountered: