Skip to content

[help] Best way to extend options in targets? #1263

Closed Answered by wlandau
Aariq asked this question in Help
Discussion options

You must be logged in to vote

8ab2305 now implements tar_resources_custom_format() which allows you to send custom environment variables to the functions you define in tar_format(). These environment variables reach parallel workers. @noamross, this might be useful for #1232.

I think this approach is appropriate when those settings do not invalidate previous work. In other words, if the right decision is to rerun the target when a setting changes, it would be preferable to avoid tar_resources_custom_format() and instead bake the setting's value into the body of a read or write function.

Anyway, here is an example where it is fine to use tar_resources_custom_format(). No matter what serialization method you choose, rea…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Aariq
Comment options

Answer selected by Aariq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants