Am I understanding string contexts correctly?

Yeah, the dependencies of an output are determined by, essentially, grepping the output for store paths. (More details here.) String contexts won’t save you if the literal store path—not encoded, not compressed—of a dependency isn’t somewhere in your output.

1 Like