From 523c4002b09c90c2ea26bc2fa0f15805c4a2f930 Mon Sep 17 00:00:00 2001 From: Chad Wilson Date: Thu, 26 Oct 2023 22:30:42 +0800 Subject: [PATCH] Fix URL in Brew release (#2421) Signed-off-by: Chad Wilson --- build/brew/brew_update.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/brew/brew_update.rb b/build/brew/brew_update.rb index 5234d98a3..487b52abc 100644 --- a/build/brew/brew_update.rb +++ b/build/brew/brew_update.rb @@ -50,11 +50,11 @@ def on_send(node) ast = Processor.new ast.process(Parser::CurrentRuby.parse(code)) -`curl -O -L https://github.com/getgauge/gauge/archive/v#{ARGV[0]}.tar.gz` +`curl -O -L https://github.com/getgauge/gauge/archive/refs/tags/v#{ARGV[0]}.tar.gz` sha256 = `shasum -a 256 v#{ARGV[0]}.tar.gz`.split[0] code = code.sub! ast.old_sha256, sha256 -code = code.gsub(%r{(https://github.com/getgauge/gauge/archive/)v\d?.\d?.\d?.tar.gz}, "https://github.com/getgauge/gauge/archive/v#{ARGV[0]}.tar.gz") +code = code.gsub(%r{(https://github.com/getgauge/gauge/archive/refs/tags/)v\d?.\d?.\d?.tar.gz}, "https://github.com/getgauge/gauge/archive/refs/tags/v#{ARGV[0]}.tar.gz") File.write(ARGV[1], code)