updater

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: EUPL-1.2 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPackageManagerPath

func IsPackageManagerPath(path string) bool

IsPackageManagerPath returns true if the binary path appears to be managed by a system package manager (homebrew, snap, nix, apt).

func ReplaceBinary

func ReplaceBinary(execPath string, newData []byte) error

ReplaceBinary atomically replaces the binary at execPath with newData. Resolves symlinks before replacement. Uses os.Rename for atomic swap on the same filesystem; falls back to copy+chmod for cross-filesystem.

Types

This section is empty.

Jump to

Keyboard shortcuts

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