You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Import comments were introduced in Go 1.4 (see background document [1])
but as far as I am aware, have never been used or supported in CUE: they
were only useful in Go before the `go.mod` file made it possible to
declare a module name, and CUE has had `module.cue` files for a long
time. In any case, CUE generally uses attributes for this kind of thing
rather than comments.
So remove the import comment parsing and deprecate the
`cue/build.Instance.ImportComment` field.
Also in passing remove the unused `fsPath` type.
[1] https://docs.google.com/document/d/1jVFkZTcYbNLaTxXD9OcGfn7vYv5hWtPx9--lTx1gPMs/edit
Signed-off-by: Roger Peppe <[email protected]>
Change-Id: I48aefec1a37c73c5f6ddef50367799d9cff276eb
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1197524
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Paul Jolly <[email protected]>
Unity-Result: CUE porcuepine <[email protected]>
0 commit comments