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
fix: improving URLs on linuxbrew #1900
Merged
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0d9df8b
fix: improving URLs on linuxbrew
caarlos0 dfc7100
refactor: rename template fields
caarlos0 51dd8cf
fix(tests): adapts brew test formulas and docs
mavogel a3bb833
Revert "fix(tests): adapts brew test formulas and docs"
caarlos0 08ef9df
fix: template
caarlos0 3100939
docs: fixed example
caarlos0 File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,24 +4,21 @@ class Test < Formula | |
homepage "https://google.com" | ||
version "0.1.3" | ||
bottle :unneeded | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that extra space was actually useful from grouping perspective. |
||
if OS.mac? | ||
url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Darwin_x86_64.tar.gz" | ||
sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c68" | ||
elsif OS.linux? | ||
if Hardware::CPU.intel? | ||
url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Linux_x86_64.tar.gz" | ||
sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67" | ||
end | ||
if Hardware::CPU.arm? | ||
if Hardware::CPU.is_64_bit? | ||
url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Arm64.tar.gz" | ||
sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67" | ||
else | ||
url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Arm6.tar.gz" | ||
sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67" | ||
end | ||
end | ||
end | ||
if OS.linux? && Hardware::CPU.intel? | ||
url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Linux_x86_64.tar.gz" | ||
sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67" | ||
end | ||
if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? | ||
url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Arm6.tar.gz" | ||
sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67" | ||
end | ||
if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? | ||
url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Arm64.tar.gz" | ||
sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67" | ||
end | ||
|
||
devel do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# This file was generated by GoReleaser. DO NOT EDIT. | ||
class Test < Formula | ||
desc "Some desc" | ||
homepage "https://google.com" | ||
version "0.1.3" | ||
bottle :unneeded | ||
depends_on :linux | ||
if OS.linux? && Hardware::CPU.intel? | ||
url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Linux_x86_64.tar.gz" | ||
sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67" | ||
end | ||
if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit? | ||
url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Arm6.tar.gz" | ||
sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67" | ||
end | ||
if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit? | ||
url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Arm64.tar.gz" | ||
sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67" | ||
end | ||
|
||
def install | ||
bin.install "test" | ||
end | ||
end |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we never include i386 builds, so this part of the switch was useless