fixup! versions: add Kubernetes image patches to components

This commit is contained in:
Markus Rudy 2023-12-14 17:39:04 +01:00 committed by Leonard Cohnen
parent 210090d34c
commit 1f6dbd1b7a

View file

@ -19,6 +19,7 @@ import (
"log" "log"
"net/http" "net/http"
"os" "os"
"strings"
"golang.org/x/tools/go/ast/astutil" "golang.org/x/tools/go/ast/astutil"
) )
@ -147,8 +148,13 @@ func main() {
} }
} }
fmt.Println("Generating hash for", url.Value.(*ast.BasicLit).Value) urlValue := url.Value.(*ast.BasicLit).Value
hash.Value.(*ast.BasicLit).Value = mustGetHash(url.Value.(*ast.BasicLit).Value) if strings.HasPrefix(urlValue, `"data:`) {
// TODO(burgerdev): support patch generation
continue
}
fmt.Println("Generating hash for", urlValue)
hash.Value.(*ast.BasicLit).Value = mustGetHash(urlValue)
} }
return true return true