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

Graft Glob Bug #145

Open
jhclark opened this issue Jan 25, 2013 · 2 comments
Open

Graft Glob Bug #145

jhclark opened this issue Jan 25, 2013 · 2 comments
Labels

Comments

@jhclark
Copy link
Owner

jhclark commented Jan 25, 2013

Graft globs that are routed to a parent task via a global variable do not work. The following should have only 1 realization for "broken" but instead has 2:

task feeder < in=(TestSet: x=/dev/null y=/dev/null) > out {}

task works1 < in=$out@feeder[TestSet:*] {}

global {
  file=(TestSet: x=/dev/null y=/dev/null)
}
task works2 < in=$file[TestSet:*] {}

global {
  var=$out@feeder
}
task broken < in=$var[TestSet:*] {}

Output:

RUN: /home/jhclark/software/ducttape/syntax/issues/shouldSucceed/./works2/Baseline.baseline (Baseline.baseline)
RUN: /home/jhclark/software/ducttape/syntax/issues/shouldSucceed/./feeder/Baseline.baseline (TestSet.x)
RUN: /home/jhclark/software/ducttape/syntax/issues/shouldSucceed/./broken/Baseline.baseline (TestSet.x)
RUN: /home/jhclark/software/ducttape/syntax/issues/shouldSucceed/./feeder/TestSet.y (TestSet.y)
RUN: /home/jhclark/software/ducttape/syntax/issues/shouldSucceed/./broken/TestSet.y (TestSet.y)
RUN: /home/jhclark/software/ducttape/syntax/issues/shouldSucceed/./works1/Baseline.baseline (Baseline.baseline)
@jhclark
Copy link
Owner Author

jhclark commented Jan 25, 2013

This is now checked in as syntax/issues/shouldSucceed/145.tape

@jhclark
Copy link
Owner Author

jhclark commented May 15, 2014

To be clear, this bug is that because "broken" uses a glob, and introduces no other branch points, it should have exactly one realization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant