Skip to content

git submodules do not specify a version, leading to non-repeatable builds #5010

Description

@gdt

Describe Your Environment

  • building from source

Describe the bug

Builds from a tag should be repeatable. (Ideally, they would be bit-for-bit reproducible.)

To Reproduce

Build, get a fix merged in one of the git submodules, build again, and observe that the build is non-repeatable.

Expected behavior

Even if there are new commits in a submodule repo, the version used for e.g. 1.38.3 is unchanged.

Workaround

In pkgsrc, we have lines for submodules so that they can be downloaded at make fetch time, because a build using the networ is a bug. Rather than using the branch name, I have found the sha1 of the commit on the branch and used that. Thus pkgsrc is repeatable, but it's not repeatable in the way it should be.

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