Skip to content

feat: add ManagedBy build flag to disable auto-updates#117

Open
ToBinio wants to merge 1 commit into
fosrl:mainfrom
ToBinio:feature-managed-by
Open

feat: add ManagedBy build flag to disable auto-updates#117
ToBinio wants to merge 1 commit into
fosrl:mainfrom
ToBinio:feature-managed-by

Conversation

@ToBinio

@ToBinio ToBinio commented Jul 25, 2026

Copy link
Copy Markdown

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

Add the ManagedBy build flag to let third-party package managers (e.g., Nix) inform the CLI of their presence.
When a package manager is used, the CLI defaults disable_update_check = true.

How to Test

  1. Build the CLI with ManagedBy set (e.g., -ldflags "-X github.com/fosrl/cli/internal/config.ManagedBy=nix").
  2. Run pangolin config show and see disable_update_check defaults to true.

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