Skip to content

Commit

Permalink
cue/load: remove Config.BuildTags
Browse files Browse the repository at this point in the history
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í <[email protected]>
Change-Id: I7ae71c34ac54f2e74115b88fcb6226b056af404c
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1205529
Reviewed-by: Matthew Sackman <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
Unity-Result: CUE porcuepine <[email protected]>
  • Loading branch information
mvdan committed Dec 11, 2024
1 parent 1f15584 commit 49a53d2
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions cue/load/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 49a53d2

Please sign in to comment.