Skip to content

Handle versions with an underscore#14

Merged
grahamgilbert merged 2 commits intomainfrom
malformed_version
Feb 20, 2026
Merged

Handle versions with an underscore#14
grahamgilbert merged 2 commits intomainfrom
malformed_version

Conversation

@grahamgilbert
Copy link
Contributor

Sometimes homebrew releases versions with an underscore in (like 2.52.0_1). This would previously break Carafe:

Error: Malformed version: 2.52.0_1
    Usage:
      carafe check [package] [flags]

    Flags:
      -h, --help                 help for check
          --min-version string   Minimum version to check the package against
          --munki-installcheck   Flag for munki installcheck which reverses the exit codes
          --skip-not-installed   Exits with success if the package is not installed. Must be used with --min-version flag. For use when checking to upgrade for security reasons

    Malformed version: 2.52.0_1

@grahamgilbert grahamgilbert merged commit da8c6bf into main Feb 20, 2026
6 checks passed
@grahamgilbert grahamgilbert deleted the malformed_version branch February 20, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants