From c409b7e106064047afc9fc108382dbb1824654b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oscar=20S=C3=B6derlund?= Date: Fri, 16 Aug 2024 12:43:22 +0200 Subject: [PATCH] feat(go-semantic-release): remove Cloud Build helper Deprecated and now removed. --- tools/sggosemanticrelease/tools.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tools/sggosemanticrelease/tools.go b/tools/sggosemanticrelease/tools.go index 8dd5cdf9..4b0cad41 100644 --- a/tools/sggosemanticrelease/tools.go +++ b/tools/sggosemanticrelease/tools.go @@ -23,24 +23,6 @@ func Command(ctx context.Context, args ...string) *exec.Cmd { return sg.Command(ctx, sg.FromBinDir(name), args...) } -// ReleaseFromCloudBuildCommand creates a semantic release with optional extra arguments to semantic-release. -// Deprecated: This helper will be removed in a coming release. Copy it if you still need it. -func ReleaseFromCloudBuildCommand(ctx context.Context, ci bool, repo string, extraArgs ...string) *exec.Cmd { - args := []string{ - "--allow-initial-development-versions", - "--allow-no-changes", - "--ci-condition", - "default", - "--provider-opt", - } - args = append(args, "slug="+repo) - args = append(args, extraArgs...) - if !ci { - args = append(args, "--dry") - } - return Command(ctx, args...) -} - func PrepareCommand(ctx context.Context) error { binDir := sg.FromToolsDir(name, version) binary := filepath.Join(binDir, name)