Correct way to archive older versions of your registered package?

Dear Julia Discourse community,

I have several versions of my package (from v0.1.0 to v0.1.6). At the first versions, I did not use many tools (CompatHelper, CI, TagBot, Tests.jl, etc.).

I was not aware of MoJuWo yet nor PkgTemplates.jl. That means I added the pluggins one by one.

Now that version v0.1.6 seems to work much more, how can I ensure that ] add MyPackage directly downloads v0.1.6 and never downloads versions from v0.1.0 to v0.1.5, i.e. archive versions below v0.1.5?

Does archiving older tags enough?

Wishing you the best,
Julien

Pkg.jl always chooses the latest compatible version of a package. So you don’t need to worry about pulling in old versions except if you specified that (either by compat or by using ]add MyPackage@0.1.3)

Alternatively to make sure, you can just release it as version 0.2 and set the compat to 0.2 in projects depending on the package. But this is not really necessary as explained above.

1 Like