Skip to content

Give Scoop its own publish switch, SKIP_SCOOP - #51

Merged
imanimanyara merged 1 commit into
mainfrom
feat/scoop-switch
Oct 21, 2026
Merged

imanimanyara merged 1 commit into
mainfrom
feat/scoop-switch

Conversation

@imanimanyara

Copy link
Copy Markdown
Member

Gives Scoop its own publish switch, SKIP_SCOOP, separate from winget's SKIP_WINDOWS_PKGS. Scoop needs only its deploy key (SCOOP_BUCKET_DEPLOY_KEY, now set), while winget needs a fork and a token, so the shared switch kept Scoop off for winget's reasons.

  • GoReleaser scoops.skip_upload: {{ or (envOrDefault "SKIP_SCOOP" "") (envOrDefault "SKIP_WINDOWS_PKGS" "") "true" }}, the first non-empty value.
  • release.yml passes SKIP_SCOOP: ${{ vars.SKIP_SCOOP }}.
  • The release guide documents both switches.

Nothing changes until SKIP_SCOOP is set: unset or empty, it follows SKIP_WINDOWS_PKGS exactly as before. Set the repository variable SKIP_SCOOP=false to publish to Scoop while winget stays off.

Why or and not envOrDefault with a fallback: GoReleaser 2.18.3 treats a set-but-empty variable as set, and an empty skip_upload publishes. Measured in a local harness pushing to a bare repository, all 7 combinations: neither set, both empty, scoop empty, and each switch on and off; publish happened only where intended.

Checked: goreleaser check passes; actionlint shows only the known stale findings, if any.

Scoop needs only its deploy key, while Winget needs a fork and a token,
so one switch kept Scoop off for Winget's reasons. SKIP_SCOOP falls back
to SKIP_WINDOWS_PKGS, then to skipped, so nothing changes until it is
set. The template uses `or`, not envOrDefault: GoReleaser 2.18.3 treats
a set-but-empty variable as set, and an empty skip_upload publishes
(measured in a local harness, 7 combinations).
Copilot AI balanced review requested due to automatic review settings October 19, 2026 20:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@imanimanyara
imanimanyara merged commit 1d22f75 into main Oct 21, 2026
9 checks passed
@imanimanyara
imanimanyara deleted the feat/scoop-switch branch October 21, 2026 10:01
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.

2 participants