From 1c9f0f3b8f190d116733f60dd5b2403bbbc21a10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Mudrini=C4=87?= Date: Thu, 6 Nov 2025 16:18:21 +0100 Subject: [PATCH] Use proper value for GOPRIVATE in sync-tags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On-behalf-of: @SAP marko.mudrinic@sap.com Signed-off-by: Marko Mudrinić --- cmd/sync-tags/gomod.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd/sync-tags/gomod.go b/cmd/sync-tags/gomod.go index ec34bf6c..bb055f58 100644 --- a/cmd/sync-tags/gomod.go +++ b/cmd/sync-tags/gomod.go @@ -43,8 +43,6 @@ func updateGomodWithTaggedDependencies(searchTag string, depsRepo []string, semv return changed, err } - fmt.Println("Found the following dependencies to update:", depPackages) - for _, dep := range depsRepo { depPath := filepath.Join("..", dep) dr, err := gogit.PlainOpen(depPath) @@ -185,7 +183,7 @@ func updateGomodWithTaggedDependencies(searchTag string, depsRepo []string, semv } // depImportPaths returns a comma separated string with each dependencies' import path. -// Eg. "k8s.io/api,k8s.io/apimachinery,k8s.io/client-go". +// Eg. "github.com/kcp-dev/apimachinery,github.com/kcp-dev/client-go". func depsImportPaths(depsRepo []string) (string, error) { dir, err := os.Getwd() if err != nil { @@ -193,6 +191,10 @@ func depsImportPaths(depsRepo []string) (string, error) { } d := strings.Split(dir, "/") basePackage := d[len(d)-2] + server := d[len(d)-3] + if server != "src" { + basePackage = fmt.Sprintf("%s/%s", server, basePackage) + } depImportPathList := []string{} for _, dep := range depsRepo {