this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cmd/cue: stabilize mod registry, rename, mirror

`cue mod registry` was added in February 2024,
and has not really been changed since.
There is one feature request as a GitHub issue to pre-populate
the registry with directory contents, but that can likely be done
via a new flag in a backwards-compatible way.

`cue mod rename` was added in January 2025,
and has not been changed since either.
It has had no bugs or feature requests filed.

`cue mod mirror` was added in February 2025,
and the last change was in May 2025 to add --dry-run.
It only had one bug reported on GitHub, which was fixed.

Note that `mod registry` was hidden but not experimental,
`mod rename` just had a trailing "not yet stable" note,
and `mod mirror` was experimental but not hidden.

These commands have existed for two full releases,
or almost a full year, and they have been documented in release notes
as well as cuelang.org guides for CUE registries and modules.
Given that we have no plans to redesign or make any breaking changes
to these anytime soon, stabilize them.

Fixes #3785.
Fixes #3890.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I4ecdd3f8b1563f0024ea09e9a693bdd560496198
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1227721
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>

+5 -14
+2 -5
cmd/cue/cmd/modmirror.go
··· 37 37 cmd := &cobra.Command{ 38 38 Use: "mirror [module...]", 39 39 Short: "mirror module content between registries", 40 - Long: `WARNING: THIS COMMAND IS EXPERIMENTAL. 41 - 40 + Long: ` 42 41 This commmand ensures that a set of modules and their dependencies 43 42 are available ("mirrored") in a registry. 44 43 ··· 67 66 dependencies will be used. When --mod is given and no modules 68 67 are specified on the command line, all the current module's dependencies will 69 68 be mirrored. 70 - 71 - Note that this command is not yet stable and may be changed. 72 - `, 69 + `[1:], 73 70 RunE: mkRunE(c, runModMirror), 74 71 } 75 72 cmd.Flags().BoolP(string(flagDryRun), "n", false, "only run simulation")
-5
cmd/cue/cmd/modregistry.go
··· 33 33 34 34 func newModRegistryCmd(c *Command) *cobra.Command { 35 35 cmd := &cobra.Command{ 36 - // This command is hidden, for now at least, 37 - // because it's not clear whether it should be 38 - // officially supported. 39 - Hidden: true, 40 - 41 36 Use: "registry [listen-address]", 42 37 Short: "start a local in-memory module registry", 43 38 Long: `
+3 -4
cmd/cue/cmd/modrename.go
··· 36 36 cmd := &cobra.Command{ 37 37 Use: "rename <newModulePath>", 38 38 Short: "rename the current module", 39 - Long: `Rename changes the name of the current module, 39 + Long: ` 40 + Rename changes the name of the current module, 40 41 updating import statements in source files as required. 41 - 42 - Note that this command is not yet stable and may be changed. 43 - `, 42 + `[1:], 44 43 RunE: mkRunE(c, runModRename), 45 44 Args: cobra.ExactArgs(1), 46 45 }