-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
dev-cmd: add bump-cask-pr command #7986
Conversation
e8b69c7
to
36bd889
Compare
Note that there already exists a tool for this called cask-repair. Ping @vitorgalvao (the author and maintainer of |
Thank you for your work and submission. At the moment it does feel like duplicate effort due to I do think it’s missing (judging by the description) a very important feature: auto-setting the I also feel the automatic version detection may be overkill and will fail a considerable amount of times. In all the years of Finally, yes, I do think this should run Good work so far. I’ve commented on the feature-set but will leave the code review to someone else, as I’m not as familiar with the workings of |
Also forgot to ask: how does this handle casks with multiple |
I don't think it needs to be. I think ideally most
That'd be great 👍 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@SeekingMeaning I’d welcome this becoming a reality and replacing the current tool for most users. Would you still like to pursue the requested changes to bring this up to par with the most common use of |
Yeah definitely, I've been doing quite a bit of refactoring since initially opening this PR. (This was actually the spark that led me to adding support for specifying Once we get #8368 merged, I think everything will be mostly ready for me to dive back into working on this |
db1e309
to
cf2bb55
Compare
Now available as of the latest commit
Removed — thank you for the feedback, I wasn't sure if it was necessary
Done, and done (It took a bit longer than expected)
It replaces the version for the currently installed version of macOS
Here's the new process for determining the download url and checksum:
|
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.
LGTM when cask folks are happy and there's a _spec
that checks the help parsing (like all other commands).
min_named 1 | ||
max_named 1 |
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.
min_named 1 | |
max_named 1 | |
named 1 |
I’m happy! Just did a short test run and was quite pleased with the results. |
33ffdfe
to
0a4fbf7
Compare
Nice job @SeekingMeaning! |
Thanks! |
Thank you for your work, @SeekingMeaning. I’m now in the process of fitting this into the documentation, and I’ve found a bug, it cannot upgrade casks with $ brew bump-cask-pr --version '1.0.0' figma
Error: /usr/local/Homebrew/Library/Homebrew/cask/cask_loader.rb:34: unexpected fraction part after numeric literal
version :1.0.0
^~~
/usr/local/Homebrew/Library/Homebrew/cask/cask_loader.rb:34: syntax error, unexpected tFLOAT, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END
version :1.0.0
^~~~~
Please report this issue:
https://docs.brew.sh/Troubleshooting
/usr/local/Homebrew/Library/Homebrew/cask/cask_loader.rb:33:in `instance_eval'
/usr/local/Homebrew/Library/Homebrew/cask/cask_loader.rb:33:in `load'
/usr/local/Homebrew/Library/Homebrew/cask/cask_loader.rb:194:in `load'
/usr/local/Homebrew/Library/Homebrew/dev-cmd/bump-cask-pr.rb:120:in `bump_cask_pr'
/usr/local/Homebrew/Library/Homebrew/brew.rb:119:in `<main>' |
thanks a lot for working on this! one limitation of 'cask-repair' is that only instance can be run concurrently. i understand why this is the case but sending a large number of updates at once is a bit cumbersome when doing it sequencially. is parallel operation something that |
No, unfortunately |
brew style
with your changes locally?brew tests
with your changes locally?Old description