Skip to content

Conversation

@ryanfowler
Copy link
Owner

Add a linker variable (-ldflags "-X ...packageManager=Homebrew") that package managers can set at build time to disable the self-update functionality. When set, --update returns an error directing users to their specific package manager, auto-update is skipped, and the --update flag is hidden from help output.

Add a linker variable (`-ldflags "-X ...packageManager=Homebrew"`)
that package managers can set at build time to disable the self-update
functionality. When set, `--update` returns an error directing users
to their specific package manager, auto-update is skipped, and the
`--update` flag is hidden from help output.
@ryanfowler ryanfowler merged commit 21f1150 into main Feb 3, 2026
10 checks passed
@ryanfowler ryanfowler deleted the disable-self-update-pkgmgr branch February 3, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant