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

-r flag not rerunning interpolation task #157

Open
guybedford opened this issue Oct 23, 2022 · 0 comments
Open

-r flag not rerunning interpolation task #157

guybedford opened this issue Oct 23, 2022 · 0 comments

Comments

@guybedford
Copy link
Owner

The -r flag is supposed to rerun the provided tasks without caching. That is, chomp build -r will rerun the build task even if the build is cached and would be skipped. -r is different to -f in that it will only rerun the top-level task, while still caching dependencies. Useful for debugging specific tasks without invalidating their dependencies.

Currently chomp build -r is not rerunning interpolation tasks though for an interpolation task like:

[[task]]
name = 'build'
dep = 'src/#'
target = 'lib/#'
run = '''
  echo "running build"
  cp $DEP $TARGET
'''

Where chomp build -r in the above will continue to use the cached run.

The reason for this is that interpolations form a list of tasks, and the main task itself is treated as a pointer task which depends on the interpolation dependencies internally. The -r logic would need to detect this specific interpolation structure to properly rerun interpolation tasks.

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