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
private homebrew taps reporting uninitialized constant GitHubPrivateRepositoryReleaseDownloadStrategy #967
Comments
|
weird, the formula seems correct to me... |
😂 |
|
The formula also looks good to me @caarlos0, do you think the issue here is with homebrew? |
|
can be, or maybe they change the strategy name... :/ |
|
I can only find one GitHub download strategy in the homebrew source code https://github.com/Homebrew/brew/blob/master/Library/Homebrew/download_strategy.rb#L796
|
|
Changing the strategy name to |
|
yeah, seems like it was removed: Homebrew/brew#5112 |
|
Any idea of how we proceed @caarlos0? Looks that that PR expects the formula / tap to provide the custom download strategy... could goreleaser generate that? |
|
if brew itself don't want to provide that anymore... I don't think goreleaser will |
|
Okay, so I pretty much just copied I then set the brew:
github:
owner: foo
name: homebrew-tap
# Allows you to set a custom download strategy.
download_strategy: GitHubPrivateRepositoryReleaseDownloadStrategy
# Allows you to add a custom require_relative at the top of the formula template
custom_require: "../custom_download_strategy"
# Folder inside the repository to put the formula.
folder: FormulaThis is working pretty nicely! @caarlos0 perhaps we just need to update the docs at https://goreleaser.com/homebrew/ and not necessarily include the download strategies here but point to them somewhere? |
|
it would be awesome, can you make a PR with those changes? Thanks :D |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Need to document this... check #1119 |
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Describe the bug
The code generated for a homebrew formula does not seem to be working.
The formula is successfully published to a
homebrew-taprepo:I try and tap, but get the following error:
Full snippet:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I should be able to
brew tapandbrew installmy binary.Environment (please complete the following information):
Darwin Your-Mother.local 18.2.0 Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018; root:xnu-4903.241.1~1/RELEASE_X86_64 x86_640.101.0, commit none, built at unknown]The text was updated successfully, but these errors were encountered: