Skip to content

Commit e69ed4f

Browse files
committed
Bump homebrew formula for scw
1 parent b0796a5 commit e69ed4f

File tree

1 file changed

+6
-2
lines changed
  • contrib/builder/homebrew

1 file changed

+6
-2
lines changed

contrib/builder/homebrew/scw.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
class Scw < Formula
44
desc "Manage BareMetal Servers from Command Line (as easily as with Docker)"
55
homepage "https://github.com/scaleway/scaleway-cli"
6-
url "https://github.com/scaleway/scaleway-cli/archive/v1.4.0-rc1.tar.gz"
7-
sha256 "2356191ef6c6e4f541aa2a516ec710f964b914e2976098174f68009d17aa110d"
6+
url "https://github.com/scaleway/scaleway-cli/archive/v1.4.0.tar.gz"
7+
sha256 "ab7ee002be9557eb2b8075e3b0df340f5e379545152049f2512f1dc2b47b7b8a"
88

99
head "https://github.com/scaleway/scaleway-cli.git"
1010

@@ -19,6 +19,10 @@ def install
1919
ln_s buildpath, buildpath/"src/github.com/scaleway/scaleway-cli"
2020
Language::Go.stage_deps resources, buildpath/"src"
2121

22+
inreplace "pkg/scwversion/placeholder.go" do |s|
23+
s.gsub! /VERSION = "master"/, "VERSION = \"v#{version}\""
24+
s.gsub! /GITCOMMIT = "master"/, "GITCOMMIT = \"v#{version}\""
25+
end
2226
system "go", "build", "-o", "scw", "./cmd/scw"
2327
bin.install "scw"
2428

0 commit comments

Comments
 (0)