Skip to content

Commit 02a694e

Browse files
committed
cue/build,cue/load: remove deprecated fields
build.Instance's ImportComment and AllTags were deprecated in v0.10.0 as they were remnants of the port from Go's go/build package. Given that they were never used, deprecating for one release cycle seems enough, so they can be removed entirely for v0.11. load.Config's StdRoot was deprecated in March 2024, for v0.9.0, and the last use of it was removed in August 2019. Just like with cue/build, now is time to remove it for v0.11. Signed-off-by: Daniel Martí <[email protected]> Change-Id: I7d4863c5cd87e220779bdfbf89d9a4f8ec479ae8 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1201962 TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Roger Peppe <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
1 parent 9f2c2fe commit 02a694e

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

cue/build/instance.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,7 @@ type Instance struct {
9090
// ancestor directories, up to the module file.
9191
Dir string
9292

93-
// NOTICE: the below tags may change in the future.
94-
95-
// ImportComment is the path in the import comment on the package statement.
96-
//
97-
// Deprecated: CUE has never needed or supported import comments.
98-
ImportComment string `api:"alpha"`
99-
100-
// AllTags are the build tags that can influence file selection in this
101-
// directory.
102-
//
103-
// Deprecated: this field is not used.
104-
AllTags []string `api:"alpha"`
93+
// NOTICE: the below struct field tags may change in the future.
10594

10695
// Incomplete reports whether any dependencies had an error.
10796
Incomplete bool `api:"alpha"`

cue/load/config.go

-4
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,6 @@ type Config struct {
260260
// to CUE.
261261
DataFiles bool
262262

263-
// StdRoot specifies an alternative directory for standard libraries.
264-
// Deprecated: this has no effect.
265-
StdRoot string
266-
267263
// ParseFile is called to read and parse each file when preparing a
268264
// package's syntax tree. It must be safe to call ParseFile simultaneously
269265
// from multiple goroutines. If ParseFile is nil, the loader will uses

0 commit comments

Comments
 (0)