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

Version Strangeness #20

Closed
behinger opened this issue Mar 1, 2023 · 7 comments
Closed

Version Strangeness #20

behinger opened this issue Mar 1, 2023 · 7 comments

Comments

@behinger
Copy link

behinger commented Mar 1, 2023

Hi!
I saw that in your project.toml version is still 0.0.1 - but in registry etc. it is 0.0.2

Maybe this is the reason I always get downgraded to CairoMakie 0.3 (super old) or GLMakie 0.1.3 (superold)?

Try it yourself e.g. in pluto

begin
	using Pkg
	using CairoMakie
	using MakieThemes
	#Figure()
	Pkg.resolve()
	Pkg.update()
	Pkg.status(;outdated=true)
end

⌃ [13f3f980] CairoMakie v0.3.4 [<v0.3.19], (<v0.10.2)

image

If I manually run ]dev MakieThemes - it works though, indicating something messed up with the versioning - and the Project.toml missmatches, so maybe that is the issue?

Best, Benedikt

@asinghvi17
Copy link
Member

So the version in Project.toml is v0.1.0, but I guess it didn't get registered for some reason...

@asinghvi17
Copy link
Member

yeah, just opened a registration PR. Should be good to go in some time. Thanks for letting me know!

@behinger
Copy link
Author

behinger commented Mar 1, 2023

mh I dont understand - the Project.toml in this repo is still v0.0.1 (in the registry it is actualy 0.0.2 already) - if you now downgrade the registry, wouldnt that lead to some kind of complicatedness - skipping to 0.0.3 wouldnt have?

(this is really just to understand better how version management works in registries etc.)

@asinghvi17
Copy link
Member

You might be looking at an old branch? This is the current version:

version = "0.1.0"

@asinghvi17
Copy link
Member

I've registered the new version in the registry now, it might take a little while to propagate though.

@behinger
Copy link
Author

behinger commented Mar 1, 2023

nono, missunderstanding.
I mean this:
https://github.com/JuliaRegistries/General/blob/master/M/MakieThemes/Versions.toml

Where there exists a v0.0.2 already. thus everyone will always install the v0.0.2 if you do add MakieThemes

@asinghvi17
Copy link
Member

asinghvi17 commented Mar 1, 2023

ah yeah, that's because the version 0.1.0 wasn't registered yet - if you take a look at it now, you should see an entry for v0.1.0.

Basically, you have to register the new version of a package when you want to release it. This version is 0.1.0, which is higher than 0.0.2 (think of them not as decimals, but rather as triplets - 0-1-0 is higher in the natural search order than 0-0-2).

Another way you can look at it is as version numbers - v0.0.2 is patch version 2 of minor version 0 of major version 0, whereas v0.1.0 is minor version 1 of major version 0, which is higher.

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