proposal: mod: allow specifying "latest" in a way that considers pre-releases too #3799
Labels
FeatureRequest
New feature or request
modules
Issues related to CUE modules and the experimental implementation
Proposal
Currently
cue mod get
supports@latest
, which means "latest stable version, unless no stableversions are available, in which case latest unstable version".
Sometimes it's desirable to update to the latest version even if it's a pre-release version
and there are existing stable versions.
We could support
@tip
for this use case.For example, for some module M, currently if the following versions of M are in the registry:
then
M@latest
will resolve tov1.2.3
because it will never choose a pre-release over a stable release.This proposal is to allow
M@tip
to specify the latest version regardless of whether it's stable or not, soM@tip
would resolve tov1.2.4-alpha2
in this case.The text was updated successfully, but these errors were encountered: