-
-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
initial ctop formula #10846
initial ctop formula #10846
Conversation
For the future pull-requests please follow our guidelines for contributing and use the commit format |
Formula/ctop.rb
Outdated
class Ctop < Formula | ||
desc "Top-like interface for container metrics" | ||
homepage "https://bcicen.github.io/ctop/" | ||
url "https://github.com/bcicen/ctop/releases/download/v0.4.1/ctop-0.4.1-darwin-amd64" |
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 need to build from source here.
Formula/ctop.rb
Outdated
|
||
def install | ||
mv "ctop-0.4.1-darwin-amd64", "ctop" | ||
bin.install "ctop" |
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.
Don’t use mv
+ bin.install
. See my comment on your other PR: #10847 (comment)
waiting for bcicen/ctop#33
Formula/ctop.rb
Outdated
(buildpath/"src/github.com/bcicen").mkpath | ||
ln_s buildpath, buildpath/"src/github.com/bcicen/ctop" | ||
system "go", "build", "-o", "ctop" | ||
bin.install "ctop" |
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.
You can merge this line and the one above by using system "go", "build", "-o", bin/"ctop"
.
Awaiting project solve that problem to send update for homebrew: bcicen/ctop#33 PR on ctop to fixed problem: bcicen/ctop#34 (awaiting approval) |
|
Formula/ctop.rb
Outdated
class Ctop < Formula | ||
desc "Top-like interface for container metrics" | ||
homepage "https://bcicen.github.io/ctop/" | ||
url "https://github.com/bcicen/ctop/archive/v0.4.1-deps.tar.gz" |
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.
This -deps
confuses the version parser; please add the version below this line using version "0.4.1"
.
Error: 1 problem in 1 formula
ctop:
* Stable: version (deps) is set to a string without a digit
@bcicen pls |
@avelino - as @bfontaine's comment suggests, all you need to do is insert version "0.4.1" below line 4 in the current formula |
@bcicen
Error:
|
@bcicen Will generate new release? |
@avelino you need to clear your local cache before testing the brew install again to fetch the correct version: rm -rvf /Users/avelino/Library/Caches/Homebrew/ctop* |
@avelino version needs to be on line 5, below url. Test error: |
``` $ brew install --build-from-source Formula/ctop.rb ==> Downloading https://github.com/bcicen/ctop/archive/v0.4.1-deps.tar.gz Already downloaded: /Users/avelino/Library/Caches/Homebrew/ctop-0.4.1.tar.gz ==> glide install ==> go build -o /usr/local/Cellar/ctop/0.4.1/bin/ctop 🍺 /usr/local/Cellar/ctop/0.4.1: 3 files, 7.4MB, built in 9 seconds ```
Thanks @avelino for your contribution to Homebrew! |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?bcicen/ctop#5