From c4d8f30944ab8ee0f2832c2e5004578b3190e594 Mon Sep 17 00:00:00 2001 From: Randy Fay Date: Mon, 18 Nov 2024 11:30:47 -0700 Subject: [PATCH] Fetch tags so ddev version is correct on HEAD --- .goreleaser.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 1f4f4816a26..2a253df3a15 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -196,8 +196,8 @@ brews: end install: | if build.head? - system "git", "fetch", "--unshallow" if File.exist?("#{HOMEBREW_REPOSITORY}/.git/shallow") - system "git", "fetch", "--tags" + system "sh", "-c", "git fetch --unshallow >/dev/null 2>&1" if File.exist?("#{HOMEBREW_REPOSITORY}/.git/shallow") + system "sh", "-c", "git fetch --tags -f >/dev/null 2>&1" os = OS.mac? ? "darwin" : "linux" arch = Hardware::CPU.arm? ? "arm64" : "amd64" system "mkdir", "-p", "#{bin}" @@ -238,8 +238,8 @@ brews: end install: | if build.head? - system "git", "fetch", "--unshallow" if File.exist?("#{HOMEBREW_REPOSITORY}/.git/shallow") - system "git", "fetch", "--tags" + system "sh", "-c", "git fetch --unshallow >/dev/null 2>&1" if File.exist?("#{HOMEBREW_REPOSITORY}/.git/shallow") + system "sh", "-c", "git fetch --tags -f >/dev/null 2>&1" os = OS.mac? ? "darwin" : "linux" arch = Hardware::CPU.arm? ? "arm64" : "amd64" system "mkdir", "-p", "#{bin}"