cue icon indicating copy to clipboard operation
cue copied to clipboard

modules: correct definition of modules

Open cuematthew opened this issue 8 months ago • 0 comments

https://cuelang.org/docs/reference/modules/#module-path states:

A module path is the canonical name for a module, declared with the module field in the module’s cue.mod/module.cue file. A module’s path is the prefix for package paths within the module.

A module path consists of a root path and a major version suffix, for example in the module path myhost.example/foo@v0, the root path is myhost.example/foo and the major version suffix is @v0.

These two paragraphs contradict each other - the first suggest the @v0 suffix isn't needed, the second says it is. I think the first paragraph needs to be reworked.

cuematthew avatar Apr 25 '25 15:04 cuematthew