Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitccbae36

Browse files
committed
useversion
1 parentf3e9290 commitccbae36

File tree

3 files changed

+13
-37
lines changed

3 files changed

+13
-37
lines changed

‎.github/workflows/test.yaml

Lines changed: 0 additions & 32 deletions
This file was deleted.

‎Formula/coder.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,21 @@ class Coder < Formula
55

66
ifOS.mac?
77
ifHardware::CPU.arm?
8-
url"https://github.com/coder/coder/releases/download/v2.1.4/coder_2.1.4_darwin_arm64.zip"
8+
url"https://github.com/coder/coder/releases/download/v#{version}/coder_#{version}_darwin_arm64.zip"
99
sha256"ac67c032e81fed7ef3b2e1fc5bfafb878e7551c081d0a136f5a88583c279c060"
1010
else
11-
url"https://github.com/coder/coder/releases/download/v2.1.4/coder_2.1.4_darwin_amd64.zip"
11+
url"https://github.com/coder/coder/releases/download/v#{version}/coder_#{version}_darwin_amd64.zip"
1212
sha256"693d6c450891627d879123ea9a08dc5917dafee7de6c639c5c9b496abe6f250b"
1313
end
1414
else
15-
url"https://github.com/coder/coder/releases/download/v2.1.4/coder_2.1.4_linux_amd64.tar.gz"
15+
url"https://github.com/coder/coder/releases/download/v#{version}/coder_#{version}_linux_amd64.tar.gz"
1616
sha256"41666bbe3afacd153fbe6c1a2d908bb4fb7a88e821205cb7136a0bad2d1cd6dc"
1717
end
1818

1919
definstall
2020
bin.install"coder"
2121
end
22+
2223
testdo
2324
version_output=shell_output("#{bin}/coder version")
2425
assert_matchversion.to_s,version_output

‎Formula/coder@1.rb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,23 @@ class CoderAT1 < Formula
44
version"1.44.0"
55

66
ifOS.mac?
7-
url"https://github.com/coder/coder-v1-cli/releases/download/v1.44.0/coder-cli-darwin-amd64.zip"
7+
url"https://github.com/coder/coder-v1-cli/releases/download/v#{version}/coder-cli-darwin-amd64.zip"
88
sha256"f3fe13cec4d0615a40134675279d4cd1a5a871356d90dedef020981622f1b693"# mac
99
else
10-
url"https://github.com/coder/coder-v1-cli/releases/download/v1.44.0/coder-cli-linux-amd64.tar.gz"
10+
url"https://github.com/coder/coder-v1-cli/releases/download/v#{version}/coder-cli-linux-amd64.tar.gz"
1111
sha256"642320e709a8585ae732e3b31d5945a09cd2a7d63121d7121c34ebc5740d3fc9"# linux
1212
end
1313

14+
keg_only:versioned_formula
15+
16+
defversion_suffix
17+
version.major.to_s
18+
end
19+
1420
definstall
1521
bin.install"coder"
1622
end
23+
1724
testdo
1825
system"#{bin}/coder","--version"
1926
end

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp