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

Allow prefixes when parsing SemVer #1451

Closed
AlexSkrypnyk opened this issue May 16, 2024 · 1 comment
Closed

Allow prefixes when parsing SemVer #1451

AlexSkrypnyk opened this issue May 16, 2024 · 1 comment

Comments

@AlexSkrypnyk
Copy link

Sometimes packages are based on the major version of the upstream project.

In our use case, we want to have a version like 10.x-1.2.3, where 10.x is a major version of the upstream project.

The reason why we cannot simply do 10.2.3 is because it may confuse our project's users: they may think that 2.3 related to the version 10.2.3 of the upstream package, where, in this case, it is only the major version 10 of the upstream package.

I have 2 questions:

  1. How do others solve this?
  2. Is there any possibility to implement this in Packagist.org with being able to resolve against that version set in prefix?
@Seldaek
Copy link
Member

Seldaek commented May 17, 2024

Nope we are not going to support these sorry. There is no need to version things like this when you have a package manager as the dependency resolution takes care of this for you.

So you could just release 1.2.3 and maybe it supports/requires drupal 10.x, or maybe it requires drupal 11.x, or maybe it allows both if that's possible. And if not you can tag 2.0.0 for drupal 11.x, and whenever someone requires your package Composer will pick whatever fits per the currently installed drupal version.

@Seldaek Seldaek closed this as not planned Won't fix, can't repro, duplicate, stale May 17, 2024
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

No branches or pull requests

2 participants