No checksum for conditional dependencies? #6441
|
I'll first open this as a discussion before opening an issue, so I can figure out of this is intentional behavior or a bug. Conditional dependencies that have more than one condition seem to be lacking a checksum in the lockfile. This can be observed in yarn's own lockfile, e.g. here with Lines 9719 to 9724 in 13d5b30 Every entry with multiple condition rules lacks a checksum. Meanwhile, the one conditional dependency here that has only a single condition Lines 10981 to 10989 in 13d5b30 Even if this is intentional behavior, what's the reasoning behind it? This make it harder to map yarn to graph-based isolated build environments like Nix. |
Replies: 1 comment 1 reply
Since they are not downloaded, we can't compute their checksum. We can still lock their versions though so they are the same across all environments. |
Since they are not downloaded, we can't compute their checksum. We can still lock their versions though so they are the same across all environments.