release

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package release implements Loom's transactional release workflow.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, config Config) error

Run validates, stages, verifies, publishes, and confirms one Loom release. Preflight preparation occurs in a temporary detached worktree, so a failed preflight cannot modify the caller's checkout.

Types

type Config

type Config struct {
	// Root is the clean Loom repository to release.
	Root string
	// Version is the exact stable semantic version tag, including its v prefix.
	Version string
	// CanonicalRemote overrides the expected origin URL. Tests use a local bare repository.
	CanonicalRemote string
	// GitHubRepo overrides the repository passed to gh.
	GitHubRepo string
	// PreflightCommand overrides the make executable used for release-preflight.
	PreflightCommand string
	// GitHubCommand overrides the gh executable used to inspect the published release.
	GitHubCommand string
	// PollAttempts controls how many times GitHub release metadata is inspected.
	PollAttempts int
	// PollInterval controls the delay between GitHub release inspections.
	PollInterval time.Duration
}

Config controls a release run.

Jump to

Keyboard shortcuts

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