Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

formulae: set root_url to GitHub Releases url - #486

Merged
dawidd6 merged 2 commits into
Homebrew:masterfrom
dawidd6:github-releases
Sep 15, 2020
Merged

formulae: set root_url to GitHub Releases url#486
dawidd6 merged 2 commits into
Homebrew:masterfrom
dawidd6:github-releases

Conversation

@dawidd6

@dawidd6 dawidd6 commented Aug 22, 2020

Copy link
Copy Markdown
Contributor

If not testing core tap (and a bunch of other conditions), set the root_url to GitHub releases url.
This url would later be used in brew pr-upload to determine what release to create.

Comment thread lib/tests/formulae.rb Outdated
@Bo98

Bo98 commented Aug 22, 2020

Copy link
Copy Markdown
Member

Not entirely sure on the !args.keep_old? case. Doesn't brew bottle mandate root_url is the same between the bottle json and the formula file when --keep-old is passed?

@dawidd6
dawidd6 force-pushed the github-releases branch 2 times, most recently from ec83dcd to 7cb8a23 Compare August 22, 2020 16:49

@MikeMcQuaid MikeMcQuaid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Makes sense to me (minus @Bo98's question I'd like to see figured out). --ci-upload should probably be configured to fail with a helpful message given this case, too?

@dawidd6

dawidd6 commented Aug 24, 2020

Copy link
Copy Markdown
Contributor Author

Yes, --keep-old was a bad idea, deleted it.

Also added a check for --ci-upload to refuse uploading to GitHub Releases.

Comment thread lib/test_ci_upload.rb Outdated
Comment thread lib/test_ci_upload.rb Outdated
@dawidd6
dawidd6 merged commit 5a02d7f into Homebrew:master Sep 15, 2020
@dawidd6
dawidd6 deleted the github-releases branch September 15, 2020 11:01
@Homebrew Homebrew locked as resolved and limited conversation to collaborators Dec 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants