From 49a53d2a390e302a08763777a9e9b8900a0640fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Wed, 11 Dec 2024 10:00:27 +0000 Subject: [PATCH] cue/load: remove Config.BuildTags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It has been deprecated in favor of Config.Tags since 2020. Similarly, Config.releaseTags was inherited from Go in 2018, but it was never actually used for any purpose. Signed-off-by: Daniel Martí Change-Id: I7ae71c34ac54f2e74115b88fcb6226b056af404c Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1205529 Reviewed-by: Matthew Sackman TryBot-Result: CUEcueckoo Unity-Result: CUE porcuepine --- cue/load/config.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/cue/load/config.go b/cue/load/config.go index 3910fe1178a..e0d7fd13d41 100644 --- a/cue/load/config.go +++ b/cue/load/config.go @@ -237,10 +237,6 @@ type Config struct { // Include all files, regardless of tags. AllCUEFiles bool - // Deprecated: use Tags - BuildTags []string - releaseTags []string - // If Tests is set, the loader includes not just the packages // matching a particular pattern but also any related test packages. Tests bool @@ -338,13 +334,6 @@ func addImportQualifier(pkg importPath, name string) (importPath, error) { // It does not initialize c.Context, because that requires the // loader in order to use for build.Loader. func (c Config) complete() (cfg *Config, err error) { - // Each major CUE release should add a tag here. - // Old tags should not be removed. That is, the cue1.x tag is present - // in all releases >= CUE 1.x. Code that requires CUE 1.x or later should - // say "+build cue1.x", and code that should only be built before CUE 1.x - // (perhaps it is the stub to use in that case) should say "+build !cue1.x". - c.releaseTags = []string{"cue0.1"} - if c.Dir == "" { c.Dir, err = os.Getwd() if err != nil {