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

Composer: unsupported value if != constraint used #31504

Open
rarkins opened this issue Sep 20, 2024 Discussed in #31501 · 0 comments
Open

Composer: unsupported value if != constraint used #31504

rarkins opened this issue Sep 20, 2024 Discussed in #31501 · 0 comments
Labels
manager:composer Composer (PHP) package manager priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others type:bug Bug fix of existing functionality versioning:composer Composer's semver versioning

Comments

@rarkins
Copy link
Collaborator

rarkins commented Sep 20, 2024

Discussed in #31501

Originally posted by martipoe September 20, 2024

What would you like help with?

I think I found a bug

How are you running Renovate?

Self-hosted

If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.

Gitlab

Please tell us more about your question or problem

I am using this version constraint with PHP Composer in composer.json:
"typo3/cms-core": "^12.4.7 !=12.4.8",

This syntax should be supported as per https://semver.madewithlove.com/?package=typo3%2Fcms-core&constraint=%5E12.4.7+!%3D12.4.8&stability=stable

However, RenovateBot seems not to support this syntax (see logs).

Consequently, this package and all packages depending on it are not updated.

It would be nice if this could be fixed/supported.

Logs (if relevant)

Logs
DEBUG: Dependency typo3/cms-core has unsupported/unversioned value ^12.4.7 !=12.4.8 (versioning=composer)`

It seems like it's the != part causing the problem. Here's some example tests I added, showing which ones fail:

    ✓ isValid("^12.4.7") === true
    ✕ isValid("!=12.4.8") === true (1 ms)
    ✕ isValid("^12.4.7 !=12.4.8") === true
    ✓ isValid("^12.4.7 >12.4.8") === true
    ✕ isValid("^12.4.7 | !=12.4.8") === true (1 ms)
    ✕ isValid("^12.4.7 || !=12.4.8") === true
@rarkins rarkins added type:bug Bug fix of existing functionality manager:composer Composer (PHP) package manager versioning:composer Composer's semver versioning labels Sep 20, 2024
@rarkins rarkins added the priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
manager:composer Composer (PHP) package manager priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others type:bug Bug fix of existing functionality versioning:composer Composer's semver versioning
Projects
None yet
Development

No branches or pull requests

1 participant