Add `--twice` (or `--ntimes=N`) flag to test reproducibility
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 4.5k
- Forks
- 682
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 29
Description
Description
The --twice (or --ntimes=N) flag will run a build twice, and bail if the digests do not match.
The second run will automatically run with --no-cache to disable layer caches (but keep cached mounts).
The SOURCE_DATE_EPOCH will be set to the time of the command execution if not explicitly set.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue describes new flags for running a build repeatedly and comparing digests, including cache and SOURCE_DATE_EPOCH behavior. No files, tests, or entry points are named; locate the build command's flag handling and existing reproducibility coverage first. Done means the requested flags implement the stated behavior and mismatched digests cause the build to bail.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- build-system, cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100