- Notifications
You must be signed in to change notification settings - Fork4
coder 2.1.4#97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
coder 2.1.4#97
Changes fromall commits
a10fe0c
19d21fe
f3e9290
ccbae36
41fa32a
f2ff8a4
f10257d
19e640c
ce151a7
d89f2bf
5a4a7e9
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: test | ||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["**"] | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-22.04, macos-13] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Set up Homebrew | ||
id: set-up-homebrew | ||
uses: Homebrew/actions/setup-homebrew@master | ||
- name: Cache Homebrew Bundler RubyGems | ||
id: cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.set-up-homebrew.outputs.gems-path }} | ||
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }} | ||
restore-keys: ${{ runner.os }}-rubygems- | ||
- name: Install Homebrew Bundler RubyGems | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: brew install-bundler-gems | ||
- run: brew test-bot --only-cleanup-before | ||
- run: brew test-bot --only-setup | ||
- run: brew test-bot --only-tap-syntax | ||
- run: brew test-bot --only-formulae | ||
if: github.event_name == 'pull_request' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
class Coder < Formula | ||
desc "Provisions remote development environments via Terraform" | ||
homepage "https://github.com/coder/coder" | ||
version "2.1.4" | ||
if OS.mac? | ||
if Hardware::CPU.arm? | ||
url "https://github.com/coder/coder/releases/download/v#{version}/coder_#{version}_darwin_arm64.zip" | ||
sha256 "ac67c032e81fed7ef3b2e1fc5bfafb878e7551c081d0a136f5a88583c279c060" | ||
else | ||
url "https://github.com/coder/coder/releases/download/v#{version}/coder_#{version}_darwin_amd64.zip" | ||
sha256 "693d6c450891627d879123ea9a08dc5917dafee7de6c639c5c9b496abe6f250b" | ||
end | ||
else | ||
url "https://github.com/coder/coder/releases/download/v#{version}/coder_#{version}_linux_amd64.tar.gz" | ||
sha256 "41666bbe3afacd153fbe6c1a2d908bb4fb7a88e821205cb7136a0bad2d1cd6dc" | ||
end | ||
def install | ||
bin.install "coder" | ||
end | ||
test do | ||
version_output = shell_output("#{bin}/coder version") | ||
assert_match version.to_s, version_output | ||
refute_match "AGPL", version_output | ||
assert_match "Full build", version_output | ||
assert_match "You are not logged in", shell_output("#{bin}/coder netcheck 2>&1", 1) | ||
assert_match "postgres://", shell_output("#{bin}/coder server postgres-builtin-url") | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
# Coder Homebrew Tap | ||
Provides official formulae for[Coder] products | ||
## Usage | ||
#### Install [Coder] | ||
```sh | ||
brew install coder/coder/coder | ||
``` | ||
#### Install Coderv1 (legacy) | ||
```sh | ||
brew install coder/coder/coder@v1 | ||
``` | ||
[coder]: https://github.com/coder/coder |
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"coder-cli-nightly": "coder@1", | ||
"coder-cli": "coder@1" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
# Updates the coder@1 formula | ||
# ./update.sh "<version>" "<darwin-amd64-zip-SHA256>" "<linux-amd64-targz-SHA256>" | ||
set -euo pipefail | ||
cd "$(dirname "$0")" | ||
version="$1" | ||
darwin_sha="$(echo "$2" | tr "[:upper:]" "[:lower:]")" | ||
linux_sha="$(echo "$3" | tr "[:upper:]" "[:lower:]")" | ||
# Replace version | ||
sed -i "s/version \"[0-9.]*\"/version \"$version\"/g" "../Formula/coder@1.rb" | ||
# Update macOS hash | ||
sed -zi "s/sha256 \"[a-f0-9]*\"/sha256 \"$darwin_sha\"/1" "../Formula/coder@1.rb" | ||
# Update Linux hash | ||
sed -zi "s/sha256 \"[a-f0-9]*\"/sha256 \"$linux_sha\"/2" "../Formula/coder@1.rb" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
# Updates the coder formula | ||
# ./update.sh "<version>" "<darwin-arm64-zip-SHA256>" "<darwin-amd64-zip-SHA256>" "<linux-amd64-targz-SHA256>" | ||
set -euo pipefail | ||
cd "$(dirname "$0")" | ||
version="$1" | ||
darwin_arm_sha="$(echo "$2" | tr "[:upper:]" "[:lower:]")" | ||
darwin_intel_sha="$(echo "$3" | tr "[:upper:]" "[:lower:]")" | ||
linux_sha="$(echo "$4" | tr "[:upper:]" "[:lower:]")" | ||
# Replace version | ||
sed -i "s/version \"[0-9.]*\"/version \"$version\"/g" "../Formula/coder.rb" | ||
# Update macOS ARM hash | ||
sed -zi "s/sha256 \"[a-f0-9]*\"/sha256 \"$darwin_arm_sha\"/1" "../Formula/coder.rb" | ||
# Update macOS Intel hash | ||
sed -zi "s/sha256 \"[a-f0-9]*\"/sha256 \"$darwin_intel_sha\"/2" "../Formula/coder.rb" | ||
# Update Linux hash | ||
sed -zi "s/sha256 \"[a-f0-9]*\"/sha256 \"$linux_sha\"/3" "../Formula/coder.rb" |