@@ -100,8 +100,6 @@ func fetchGoMod(origin, tag string) (*modfile.File, error) {
100
100
101
101
url := fmt .Sprintf ("https://raw.githubusercontent.com/%s/refs/tags/%s/go.mod" , repoPath , tag )
102
102
103
- // log.Printf("fetching %s\n", url)
104
-
105
103
ctx , cancel := context .WithTimeout (context .Background (), 30 * time .Second )
106
104
defer cancel ()
107
105
@@ -271,16 +269,13 @@ func main() {
271
269
if err != nil {
272
270
fmt .Printf ("Error: %v\n " , err )
273
271
continue
274
- } else {
275
- fmt .Printf ("origin URL: %s\n " , origin )
276
272
}
277
-
278
273
// 2. From the VCS url, do `git ls-remote --tags <vcs_url>` to get the tags
279
274
// output:
280
275
// 3. Parse the tags, and extract all the majors from them (ex v2, v3, v4)
281
276
tags , err := getTags (origin )
282
277
if err != nil {
283
- fmt .Println ("Error fetching tags:" , err )
278
+ fmt .Println ("Error fetching tags: %v " , err )
284
279
continue
285
280
}
286
281
@@ -318,8 +313,10 @@ func main() {
318
313
for base , contribMajor := range contrib_latests {
319
314
if latestGithub , ok := github_latests [base ]; ok {
320
315
if semver .Compare (latestGithub .Version , contribMajor ) > 0 {
321
- if base == "go-redis/redis" && latestGithub .Version == "v9" {
322
- continue // go-redis/redis => redis/go-redis in v9
316
+ if (base == "go-redis/redis" && latestGithub .Version == "v9" ) || (base == "k8s.io/client-go" ) {
317
+ // go-redis/redis => redis/go-redis in v9
318
+ // for k8s.io we provide a generic http client middleware that can be plugged with any of the versions
319
+ continue
323
320
}
324
321
fmt .Printf ("New latest major %s of repository %s on Github at module: %s\n " , latestGithub .Version , base , latestGithub .Module )
325
322
fmt .Printf ("latest contrib major: %v\n " , contribMajor )
0 commit comments