@@ -79,19 +79,6 @@ func (x *TagXReposTasks) SelectRepos(ctx *wf.TaskContext) ([]TagRepo, error) {
79
79
return repos , nil
80
80
}
81
81
82
- // TODO(heschi): delete after first use
83
- var initialTags = map [string ]bool {
84
- "arch" : true ,
85
- "crypto" : true ,
86
- "image" : true ,
87
- "net" : true ,
88
- "oauth2" : true ,
89
- "sync" : true ,
90
- "sys" : true ,
91
- "term" : true ,
92
- "time" : true ,
93
- }
94
-
95
82
func (x * TagXReposTasks ) readRepo (ctx * wf.TaskContext , project string ) (* TagRepo , error ) {
96
83
head , err := x .Gerrit .ReadBranchHead (ctx , project , "master" )
97
84
if errors .Is (err , gerrit .ErrResourceNotExist ) {
@@ -106,9 +93,6 @@ func (x *TagXReposTasks) readRepo(ctx *wf.TaskContext, project string) (*TagRepo
106
93
if err != nil {
107
94
return nil , err
108
95
}
109
- if tag == "" && initialTags [project ] {
110
- tag = "PLACEHOLDER"
111
- }
112
96
if tag == "" {
113
97
ctx .Printf ("ignoring %v: no semver tag" , project )
114
98
return nil , nil
@@ -566,23 +550,19 @@ func (x *TagXReposTasks) MaybeTag(ctx *wf.TaskContext, repo TagRepo, commit stri
566
550
}
567
551
568
552
if highestRelease == "" {
569
- if ! initialTags [repo .Name ] {
570
- return TagRepo {}, fmt .Errorf ("no semver tags found in %v" , repo .Name )
571
- }
572
- repo .Version = "v0.1.0"
573
- } else {
574
- tagInfo , err := x .Gerrit .GetTag (ctx , repo .Name , highestRelease )
575
- if err != nil && ! initialTags [repo .Name ] {
576
- return TagRepo {}, fmt .Errorf ("reading project %v tag %v: %v" , repo .Name , highestRelease , err )
577
- }
578
- if tagInfo .Revision == commit {
579
- repo .Version = highestRelease
580
- return repo , nil
581
- }
582
- repo .Version , err = nextMinor (highestRelease )
583
- if err != nil {
584
- return TagRepo {}, fmt .Errorf ("couldn't pick next version for %v: %v" , repo .Name , err )
585
- }
553
+ return TagRepo {}, fmt .Errorf ("no semver tags found in %v" , repo .Name )
554
+ }
555
+ tagInfo , err := x .Gerrit .GetTag (ctx , repo .Name , highestRelease )
556
+ if err != nil {
557
+ return TagRepo {}, fmt .Errorf ("reading project %v tag %v: %v" , repo .Name , highestRelease , err )
558
+ }
559
+ if tagInfo .Revision == commit {
560
+ repo .Version = highestRelease
561
+ return repo , nil
562
+ }
563
+ repo .Version , err = nextMinor (highestRelease )
564
+ if err != nil {
565
+ return TagRepo {}, fmt .Errorf ("couldn't pick next version for %v: %v" , repo .Name , err )
586
566
}
587
567
588
568
// TODO(heschi): delete after first couple uses
0 commit comments