Ok, so tag by just bumping by a patch then? The whole point of bumping a minor version in < 1.0 is to indicate that it is breaking release and that packages that depend on it shouldnāt automatically use that version without checking if it is compatible with the breaking changes.
I tagged FillArrays.jl as v0.6 because transpose
/adjoint
/vec
now return an immutable Fill
. This is ābreakingā because code that assumed these functions are mutable would be broken. But it is very unlikely that any code was actually broken.
Should this have been a patch then?
It sounds like a breaking change so packages that depend on the package should thus not automatically be compatible with this version but instead verify that that they are either not affected by the breaking change, or update their package to be compatible with the new release. When that is done, they release a new version, adding compatibility with the breaking release of the dependency and thus Pkg.update()
will not break anyoneās code. I donāt see any other way of doing it.
Assuming that breaking changes do not apply to you and then changing the registry in hindsight when you start getting bug reports about the package not working anymore seems like a much worse way of doing it. Pkg.update()
is then very likely to just flat out break users previously working setup of packages.
But this has been and still is up to the package developer: we can still do FillArrays = "ā„ 0.5.0"
and automatically use new versions with breaking changes.
The issue is that users have said they want this behaviour by writing
FillArrays 0.5
in REQUIRE, which has been reinterpreted as FillArrays 0.5 0.6
without the package developers input.
Worrying about users setup breaking is premature before a package is tagged as 1.x
. It seems like you are trying to reinvent 0.1.x
as the new 1.x
.
Yes, you can but for now we have a correct start. Upper bounds was too annoying in the REQUIRE format for anyone to use it. Now it is the easiest to use. For the pain this have caused, start going through Pull requests Ā· JuliaLang/METADATA.jl Ā· GitHub. Accepting stuff like that is very much up to the maintainers of the registry.
How Pkg interprets semver pre 1.0 is documented and is consistent with how Julia itself has been developed and how many other package managers do it (like Cargo).
This is just to make sure I understand (I donāt have a strong opinion either way but would like to understand what will happen). In a few packages I have put ārelaxedā compatibility requirements (as a practical decision, I accepted that in 0.x versions there would be occasional breakage and planned to be stricter when packages get closer to 1.0 releases). Can I assume that versions were āstrictifiedā according to semver in the registries and will stay strict until I tag a new release, in which case they will respect what I wrote in Project.toml?
As far as I know, that sounds correct.
Ok I get it: you are assuming most packages didnāt put upper bounds not intentionally but because it was too hard. Fair enough. I suppose this will sort itself out over time.
Can you clarify why you prefer adding bounds manually afterwards instead of having them be correct from the start? e.g. https://github.com/JuliaLang/METADATA.jl/pull/19766, https://github.com/JuliaLang/METADATA.jl/pull/19308, https://github.com/JuliaLang/METADATA.jl/pull/19120, https://github.com/JuliaLang/METADATA.jl/pull/18841, https://github.com/JuliaLang/METADATA.jl/pull/15386, https://github.com/JuliaLang/METADATA.jl/pull/15210, https://github.com/JuliaLang/METADATA.jl/pull/13524, https://github.com/JuliaLang/METADATA.jl/pull/7584 etc. From these it looks like the current behaviour is what you really want? But maybe I am missing something?
Good point, perhaps Iāll start putting upper bounds in. Though it depends on the package: FillArrays.jl is unlikely to change much in between versions.
Upper bounds are ābuilt-inā in the new system in the sense that the next breaking (as defined in the docs) is not allowed. Therefore, something
[compat]
Package = "0.1"
means compatibility with the 0.1-series of releases, but not 0.2 since that is considered breaking.
And ā0.1.1ā means ā0.1.1 <= VERSION < 0.2ā?
Yes, see 6. Compatibility Ā· Pkg.jl
By the way, if you want to encourage this behaviour, perhaps @StefanKarpinskiās gen_project.jl script should be changed as well to not produce ā„ 0.x.y
by default?
The script conservatively translates your REQUIRE bounds as literally as possible. Otherwise Iām sure you can see that someone would be complaining that their package which previously installed just fine now wonāt install because the generated compat section is much more restrictive than the REQUIRE file was.
It seems like some degree of human judgement about compat bounds is required here which is why Iām not very enthusiastic about automatic translation of the old bounds to the new onesāI think thereās a hard limit on how well it can be done completely automatically and package authors will need to start thinking about and understanding semantic versioning.
That argument also applies to the original translation that caused this threadā¦
Yes, Iām damned if I do and damned if I donāt, which is why Iām mostly ignoring complaints.
Fair enough. Same goes for git knowledge. I see it as an opportunity to learn and improve in something I suck at.
Please donāt be disheartened by complaints. The discussions, coding, and conceptual design devoted to the new Pkg system by you and others is highly appreciated.