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

Commita10fe0c

Browse files
committed
coder@1: rename legacy formulas
1 parentd422c68 commita10fe0c

File tree

4 files changed

+16
-32
lines changed

4 files changed

+16
-32
lines changed

‎ci/update.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ darwin_sha="$(echo "$2" | tr "[:upper:]" "[:lower:]")"
1212
linux_sha="$(echo"$3"| tr"[:upper:]""[:lower:]")"
1313

1414
# Get the old version to use in our find/replace.
15-
old_version="$(sed -n"s/.*version\"\(.*\)\".*/\1/p" ../coder-cli.rb)"
15+
old_version="$(sed -n"s/.*version\"\(.*\)\".*/\1/p""../coder@1.rb")"
1616
if [["$old_version"=="" ]];then
1717
echo"Could not determine the old version of the formula...">&2
1818
exit 1
1919
fi
2020

2121
# Replace version
22-
sed -i"s/${old_version//./\.}/${version//./\.}/g" ../coder-cli{,-nightly}.rb
22+
sed -i''"s/${old_version//./\.}/${version//./\.}/g""../coder@1.rb"
2323

24-
#Darwin amd64 SHA256. This only selects the first match
25-
sed -zi"s/sha256\"[a-f0-9]*\"/sha256\"$darwin_sha\"/1"../coder-cli{,-nightly}.rb
24+
#Update macOS hash
25+
sed -i''"s/sha256\"[a-f0-9]*\" # mac/sha256\"$darwin_sha\" # mac/""../coder@1.rb"
2626

27-
# Linuxamd64 SHA256. This only selects the second match
28-
sed -zi"s/sha256\"[a-f0-9]*\"/sha256\"$linux_sha\"/2"../coder-cli{,-nightly}.rb
27+
#UpdateLinuxhash
28+
sed -i''"s/sha256\"[a-f0-9]*\" # linux/sha256\"$linux_sha\" # linux/""../coder@1.rb"

‎coder-cli-nightly.rb

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

‎coder-cli.rbrenamed to‎coder@1.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
classCoderCli <Formula
1+
classCoderAT1 <Formula
22
desc"Command-line tool for the Coder remote development platform"
3-
homepage"https://github.com/cdr/coder-cli"
3+
homepage"https://github.com/coder/coder-v1-cli"
44
version"1.44.0"
55

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

1414
definstall

‎formula_renames.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"coder-cli-nightly":"coder@1",
3+
"coder-cli":"coder@1"
4+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp