Skip to content

Commit aa53e0e

Browse files
authored
Merge pull request #206352 from branchvincent/cloudpan189-go
cloudpan189-go: migrate to go
2 parents fb2dda4 + 7b3d07b commit aa53e0e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Formula/c/cloudpan189-go.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,16 @@ class Cloudpan189Go < Formula
1919
sha256 cellar: :any_skip_relocation, x86_64_linux: "21c193bc56690eef410bdbbce6d6b774fcf658f16b114ea0222afee18591d361"
2020
end
2121

22-
# use "go" again when https://github.com/tickstep/cloudpan189-go/issues/101 is resolved and released
23-
depends_on "[email protected]" => :build
22+
depends_on "go" => :build
2423

2524
def install
26-
system "go", "build", *std_go_args(ldflags: "-s -w")
25+
# TODO: remove `-checklinkname=0` workaround when fixed
26+
# https://github.com/tickstep/cloudpan189-go/issues/101
27+
system "go", "build", *std_go_args(ldflags: "-s -w -checklinkname=0")
2728
end
2829

2930
test do
3031
system bin/"cloudpan189-go", "run", "touch", "output.txt"
31-
assert_predicate testpath/"output.txt", :exist?
32+
assert_path_exists testpath/"output.txt"
3233
end
3334
end

0 commit comments

Comments
 (0)