8000 Fix updating scoop bucket, homebrew-core formula on release by mislav · Pull Request #2056 · cli/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix updating scoop bucket, homebrew-core formula on release #2056

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Oct 6, 2020
Merged

Conversation

mislav
Copy link
Contributor
@mislav mislav commented Oct 1, 2020

Goreleaser can no longer bump our scoop bucket for us since we're always creating a draft release initially.

Fixes #1684
Followup to #1615 (review)
Followup to #1470

mislav added 3 commits October 1, 2020 19:09
Goreleaser can no longer do this for us since we're always creating a
draft release initially.
Now that Goreleaser doesn't need to update any external repositories, we
can use the default generated GITHUB_TOKEN for releases.
The gh formula in homebrew-core went back and forth between git-style
and tarball-style. Now that it's back to tarball, update the action to
reflect that.
Copy link
Contributor
@samcoe samcoe left a comment

Choose a reason for hiding this comment

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

Makes sense to me

@vilmibm
Copy link
Contributor
vilmibm commented Oct 5, 2020

This feels wrong to me. Why wouldn't we be submitting something upstream to goreleaser? Why bother using goreleaser if we're going to selectively write our own tooling for certain types of releases?

I appreciate that we want this fixed prior to the next release but I've submitted PRs to goreleaser in the past (for scoop related issues, iirc) and it's been a quick and positive experience.

@mislav
Copy link
Contributor Author
mislav commented Oct 6, 2020

Why wouldn't we be submitting something upstream to goreleaser?

@vilmibm We could definitely consider it, but I'm not sure what kind of change should we submit upstream. By skipping the scoop pipeline for draft releases, goreleaser is working as designed.

If we do add to it some functionality to publish a scoop bucket even for draft releases, perhaps via a flag, then we are publishing to scoop something that hasn't been published as a release yet.

Ideally, goreleaser could let us repeatedly run goreleaser release over our different release phases, each time selecting a different part of its configuration to execute. Is this what you had in mind as an upstream contribution?

@mislav
Copy link
Contributor Author
mislav commented Oct 6, 2020

@vilmibm Merging for now to aid with today's release; let's continue the upstream contribution discussion elsewhere! 👍

@mislav mislav merged commit 0d593e7 into trunk Oct 6, 2020
@mislav mislav deleted the scoop branch October 6, 2020 13:04
@JanPokorny
Copy link
Contributor

An alternative for this would be setting up your Scoop bucket (since you still insist you need it...) in the same way the official buckets work, eg. watch for GitHub releases and update when a new release comes out. That would just use existing Scoop tooling.

@vilmibm
Copy link
Contributor
vilmibm commented Oct 23, 2020

@mislav I don't think I'd grasped the gravity of using goreleaser to only do draft releases; if we're going to continue down that route then, yeah, I don't have a good suggestion of something to push upstream since it would require changing goreleaser's flow at a high level.

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.

cli/scoop-gh not updated with v0.12.0
4 participants
0