repro

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package repro verifies that two builds of the same manifest are identical.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	ProjectPath        string
	Epoch              time.Time
	Compression        string
	ControlCompression string
}

Options configures a reproducibility run.

type Result

type Result struct {
	Reproducible  bool     `json:"reproducible"`
	FirstSHA256   string   `json:"firstSha256"`
	SecondSHA256  string   `json:"secondSha256"`
	Size          int64    `json:"size"`
	Differences   []string `json:"differences,omitempty"`
	FirstArtifact string   `json:"firstArtifact"`
}

Result reports whether the builds matched.

func Compare

func Compare(firstPath, secondPath string) (*Result, error)

Compare inspects two artifacts and lists structural differences.

func Verify

func Verify(options Options) (*Result, error)

Verify builds the project twice in isolated directories and compares bytes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL