Skip to content

Are input .drvs replaced by the same algorithm as output .drvs? #245

@noamraph

Description

@noamraph

I read this in chapter 18:

In case the .drv has input derivations, that is it references other .drv, then such .drv paths are replaced by this same algorithm which returns a hash.

Just above this, the text describes how in order to calculate the hash of the derivation, output derivations are replaced with an empty string. I don't believe this is done for input derivations, as I'm pretty sure they should be already known when calculating the hash of a derivation.

Am I correct? If so, I suggest to change the paragraph to something like:

In case the .drv has input derivations, that is, it references other .drvs, there is no need to replace their path with an empty string, since their hash is calculated beforehand, using the algorithm described here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions