Skip to content
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

cask/artifact: check the bundle version when using --adopt. #16889

Merged
merged 1 commit into from Mar 14, 2024

Conversation

MikeMcQuaid
Copy link
Member

@MikeMcQuaid MikeMcQuaid commented Mar 14, 2024

This makes --adopt considerably faster and more useful for application bundles by checking the bundle version before failing to adopt the bundle.

This could be further extended by e.g. checking if auto-updates are enabled.

While we're here, also allow adopt to act a bit more like force in a few other places assuming this initial check passes.

Can test with e.g. brew install fork; sudo rm -rf /opt/homebrew/Caskroom/fork; brew install --adopt fork

@MikeMcQuaid MikeMcQuaid requested a review from a team March 14, 2024 09:39
@MikeMcQuaid MikeMcQuaid force-pushed the adopt_bundle_version branch 2 times, most recently from 7c88598 to a554366 Compare March 14, 2024 09:55
This makes `--adopt` considerably faster and more useful for application
bundles by checking the bundle version before failing to adopt the
bundle.

This could be further extended by e.g. checking if auto-updates are
enabled.

While we're here, also allow `adopt` to act a bit more like `force` in
a few other places assuming this initial check passes.
@MikeMcQuaid MikeMcQuaid merged commit f1ba840 into master Mar 14, 2024
26 checks passed
@MikeMcQuaid MikeMcQuaid deleted the adopt_bundle_version branch March 14, 2024 16:42
@github-actions github-actions bot added the outdated PR was locked due to age label Apr 14, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants