Skip to content

Commit

Permalink
Fetch tags so ddev version is correct on HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Nov 18, 2024
1 parent aa3f9f2 commit c4d8f30
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down Expand Up @@ -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}"
Expand Down

0 comments on commit c4d8f30

Please sign in to comment.