-
Notifications
You must be signed in to change notification settings - Fork 129
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
Prohibit dynamic branching over unbranched dynamic files. #1302
Comments
Let's go with (1). What users actually want here is to invalidate some sub-targets but not others, and this is impossible in the Stack Overflow OP because of the composite hash. |
Thank you for following up on this! I still don't quite understand, and would like to ask more questions: Do you want to allow the user to explicitly specify composite hashes? If yes, then option (2) allows them to do this, but how would they do that with option (1)? If you do not want to allow users to explicitly specify composite hashes, wouldn't an alternative option (3) be to modify |
I think the most pragmatic option is to add guardrails. Hashes are internal, so users should not have access. I hesitate to use file-specific hashes because of the potential burden on metadata storage, and the architectural challenges do not seem worth an incrementally more convenient UI. |
By the way, dynamic branching over dynamic files should become much easier in |
Prework
drake
's code of conduct.drake-r-package
tag. (If you anticipate extended follow-up and discussion, you are already in the right place!)Description
https://stackoverflow.com/questions/63293094/how-do-i-read-dynamic-files-in-drake shows that if we dynamically branch over a dynamic file target, the file target must also use dynamic branching. We have two options for the example in https://stackoverflow.com/questions/63293094/how-do-i-read-dynamic-files-in-drake.
import_paths
is not dynamic.data
.Because dynamic files are such a challenging and awkward architectural fit in
drake
, I am inclined to go with (1).The text was updated successfully, but these errors were encountered: