Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnsupportedPlatform indicates the current OS/architecture is not supported. ErrUnsupportedPlatform = errors.New("unsupported platform") // ErrChecksumMismatch indicates the downloaded archive failed SHA256 verification. ErrChecksumMismatch = errors.New("checksum mismatch") // ErrBinaryNotFound indicates the binary was not found inside the archive. ErrBinaryNotFound = errors.New("binary not found in archive") )
Sentinel errors for update operations.
Functions ¶
This section is empty.
Types ¶
type PlatformInfo ¶
type PlatformInfo struct {
OS string // GoReleaser OS name (e.g., "Linux", "Darwin", "Windows")
Arch string // GoReleaser arch name (e.g., "x86_64", "arm64")
ArchiveExt string // Archive extension (e.g., ".tar.gz", ".zip")
}
PlatformInfo describes the target platform for binary downloads.
func DetectPlatform ¶
func DetectPlatform() (PlatformInfo, error)
DetectPlatform maps the current runtime OS and architecture to GoReleaser names.
type UpdateError ¶
UpdateError represents an error during the update process.
func (*UpdateError) Error ¶
func (e *UpdateError) Error() string
func (*UpdateError) Unwrap ¶
func (e *UpdateError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.