-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Cassandra-reaper 1.3.0 (new formula) #31532
Cassandra-reaper 1.3.0 (new formula) #31532
Conversation
modify to pass 'brew audit --strict'
|
@DomT4 (cc: @BrewTestBot - not sure who that goes to) Is the presence of a patch a hard blocker against the inclusion of a new formula? The patch has already been accepted upstream prior to this PR (in fact the link to the patch is from the upstream commit). But it's not clear when the next release will be and the fix seems to be too minor to warrant a new point release by itself. |
BrewTestBot is a... Bot. It'll just ignore you 😄. As for the patch, I'd say it's less problematic because it's already accepted upstream. There is a lot of mention of "for homebrew" in the formula though, which I think is kind of implied in a homebrew formula. (For example in the description) could you remove those descriptions? |
Thanks for the feedback, I have re-pushed with those changes. |
Formula/cassandra-reaper.rb
Outdated
|
||
def install | ||
prefix.install "bin" | ||
mv "server/target", "cassandra-reaper" |
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.
It seems these are jar files, those are usually packed in libexec for homebrew.
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.
Yes, these are jar files.
I think it is no problem because those in the other package of casssandra-reaper are also packed in share.
To be fair I do a fair bit of talking to the bot 😆. I think we can live without the patch though because, well, it doesn't actually fix the whole Homebrew problem because it assumes |
Would a wrapper like the one in |
This style of syntax is slightly cleaner & should work fine: env = {
:PATH => "#{libexec}/vendor/bin:$PATH",
:PYTHONPATH => ENV["PYTHONPATH"],
}
bin.env_script_all_files(libexec/"bin", env) If there are multiple files in that directory and you only need to script one you can use |
@DomT4 |
@DomT4 About
Because of such condition, if not have argument it set automatically. |
Does it work if we That would replace the |
@DomT4 |
@DomT4 |
Formula/cassandra-reaper.rb
Outdated
def install | ||
prefix.install "bin/cassandra-reaper" | ||
mv "server/target", "cassandra-reaper" | ||
share.install "cassandra-reaper" |
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.
Combine this line & the line above into:
pkgshare.install "server/target" => "cassandra-reaper"
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.
With such a description, the path of the jar file will change and it will not work.
@DomT4 |
@DomT4 |
Thanks @muru. |
@SMillerDev |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Is there no reviewer for this ... ? |
@BrewTestBot test this please! |
If it produces java files you need to define a Java version it depends on. |
They seem to be using 1.8 on Travis
so either add |
@SMillerDev @javian |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Thanks @kotaroyamazaki 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>
)?Since this formula produce cross-platform binaries (Java), it does not use
brew install --build-from-source <formula>
.The inline patch is temporary to update the 'cassandra-reaper' script for brew.
Since PR thelastpickle/cassandra-reaper#533 is merged, it will be obsolete once next version is released.