Skip to content

Commit

Permalink
Fix URL in Brew release (#2421)
Browse files Browse the repository at this point in the history
Signed-off-by: Chad Wilson <chadw@thoughtworks.com>
  • Loading branch information
chadlwilson authored Oct 26, 2023
1 parent 77e1343 commit 523c400
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/brew/brew_update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 523c400

Please sign in to comment.