-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Building with NO_GIT=1
causes problems with Compat.jl and other packages
#10851
Comments
The Julia in Debian doesn't contain the build number either:
|
I believe that's expected for distribution builds made off a tag, @sjkelly; what @jakebolewski is experiencing seems to be the incremental numbering of the development versions, which are used as breakpoints for switching between implementations in Compat.jl. |
Said this in person yesterday, but yeah this is bad... should a NO_GIT build of a dev version just default to something ridiculous like |
When should |
From a release tag it should be fine to build with |
So maybe the |
Actually, why not just change @StefanKarpinski, is there a good reason why |
I seem to recall that when I implemented versions, the semver spec included build info in "precedence" (i.e. version ordering), but now it explicitly doesn't:
It seems kind of crappy to me to make version numbers non-totally ordered, so I'm curious why they did that. It would let us change this ordering without being any less in compliance with the version spec – but also not fully in compliance, since the spec seems to indicate that we should ignore build info when it comes to version ordering. However, I think using the version |
From the examples it sounds like semver wants
The choice of SHOULD vs. MUST suggests it's not too bad if we do use it. |
Just to prove to myself that I'm not imagining things, in semver v2.0.0-rc.1, the precedence section read:
I'm pretty sure that was the version of semver I based the implementation on. |
Looks like it got dropped in v2.0. The language changed a lot between the final and RC versions. |
I think we should go with @stevengj 's suggestion here and close this issue. |
If you read the spec, it defines |
Building with
make NO_GIT=1
causesVERSION
to not contain the build number. This breaks a lot of packages that check the specific build number for compatibility.The text was updated successfully, but these errors were encountered: