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
Battery: Update description and add caveats to reduce installation confusion #172797
Conversation
ddea136
to
df30594
Compare
Looks like somehow I accidentally sync'd other commits to the repo into my pull request. I only intended to change Casks/b/battery.rb. Is it each to proceed from here? |
/rebase |
df30594
to
a8d0630
Compare
Thanks for the PR. I've rebased it.
|
Depends what you mean by upstream. If you install the battery CLI directly with different commands (curl -s https://raw.githubusercontent.com/actuallymentor/battery/main/setup.sh | bash), then the CLI works. This cask actually just installs a macOS app. If you run the app, it will then install the CLI. Currently it's confusing that cask description says it installs the CLI, but when you I suggest that either:
Separately, I can also work with the battery maintainer to improve the battery github documentation to make clear that |
Reflecting on this more-- what I was hoping for was a homebrew acceptable way to communicate to users that this battery cask is the battery app that also installs the battery CLI when the app is first run. Right now at the very least, the current cask description of its being the battery CLI is just wrong. I would have thought the caveat I added that you need to run the app to complete the CLI install would be fine. If it's really not kosher per homebrew standards, what is the right way to communicate this? Maybe we squeeze it into the cask description, like: "App for managing the battery charging status. Installs CLI on first use." It's an improvement and would have helped me when I couldn't find the CLI after Perhaps homebrew just expects the maintainers of the battery project to better document externally that if you want the CLI to work, you can either install this cask and run the app once, or to install the CLI directly (with curl, until someone makes a homebrew battery-cli formula)... |
Does the .app have the CLI in it but it's just not installed til the .app is run? If so, we can add a binary stanza to install it at the same time. |
I'm not sure this makes sense as the macOS app is coded to look for the cli in /usr/local/bin as opposed to the homebrew folder and will install it again if it's not there. Separately, the CLI install actually has some logic around another dependency and permissions, etc, that I don't think we would want to duplicate in the homebrew logic even if we could. Based on what I've learned here, I've removed the caveats per your instruction and update the PR to just clarify the description. The new description explains that this cask is an app, not just a cli, and that if you're expecting the CLI you need to run the app first. I am separately working with the battery maintainer to clarify the README as well.(actuallymentor/battery#272) |
Thank you @johnmcdowell. |
Important: Do not tick a checkbox if you haven’t performed its action. Honesty is indispensable for a smooth review process.
In the following questions
<cask>
is the token of the cask you're submitting.After making any changes to a cask, existing or new, verify:
brew audit --cask --online <cask>
is error-free.brew style --fix <cask>
reports no offenses.Additionally, if adding a new cask:
brew audit --cask --new <cask>
worked successfully.HOMEBREW_NO_INSTALL_FROM_API=1 brew install --cask <cask>
worked successfully.brew uninstall --cask <cask>
worked successfully.This cask appeared to install the battery CLI, but the CLI doesn't work or isn't present unless the macOS app is run at least once. This change both: