Skip to main content

Module context

Module context 

Source

Structs§

Context
ContextOptions
StageOutputs
Stage→stage handoff state produced by stages and consumed by later stages (as opposed to config / options which are pipeline inputs, or artifacts which has its own registry). The changelog stage writes here, the release stage reads here.

Enums§

RollbackMode
Rollback policy after the publish stage. BestEffort is the default when pre-flight ran clean; None is the implicit default otherwise (callers should warn that rollback is disabled). The CLI flag --rollback=<v> sets ContextOptions::rollback_mode to Some(v) to override the default-resolution at the dispatch site.

Constants§

VALID_BUILD_SKIPS
Valid –skip values for the build command.
VALID_RELEASE_SKIPS
Valid –skip values for the release command (matches GoReleaser).

Functions§

map_arch_to_goarch
Map Rust’s std::env::consts::ARCH to Go-compatible GOARCH naming. GoReleaser templates expect Go runtime names (e.g. “amd64” not “x86_64”).
map_os_to_goos
Map Rust’s std::env::consts::OS to Go-compatible GOOS naming. GoReleaser templates expect Go runtime names (e.g. “darwin” not “macos”).
validate_skip_values
Validate that all skip values are in the allowed set.