Skip to content

Commit 2edc1fd

Browse files
authored
remove coder@1 (sunsetted) (#398)
Coder v1 is sunsetted, so this removes it from the tap. Deleted: - `Formula/coder@1.rb` - `scripts/update-v1.sh` - `formula_renames.json` — both entries (`coder-cli`, `coder-cli-nightly`) pointed at `coder@1`, so a dangling rename target would be left behind - the "Install Coder v1 (legacy)" section in `README.md`, which told users to run a formula that no longer exists - the coder@1 / v1 references in `AGENTS.md` (key files, release helper, commit-message convention), and the `scripts/update-*.sh` mentions are now singular since `update-v2.sh` is the only one left No CI change: `.github/workflows/test.yml` has no coder@1-specific steps, it just runs `brew test-bot` over the whole tap. No SHA256 values involved. Ran `brew style .` locally — no offenses.
1 parent 17be4ea commit 2edc1fd

5 files changed

Lines changed: 4 additions & 79 deletions

File tree

‎AGENTS.md‎

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,9 @@ Typical changes are version bumps (updating `version`, `url`, and `sha256`) and
2222
## Key files
2323

2424
- `Formula/coder.rb`: **Coder v2** CLI formula (macOS arm64/amd64 + Linux amd64).
25-
- `Formula/coder@1.rb`: **Coder v1** (legacy) CLI formula (`keg_only :versioned_formula`).
2625
- `Casks/coder-desktop.rb`: Coder Desktop (versioned pkg + pinned `sha256`).
2726
- `Casks/coder-desktop-preview.rb`: Deprecated preview cask (`sha256 :no_check`).
28-
- `formula_renames.json`: Maps historical formula names to current ones.
2927
- `scripts/update-v2.sh`: Updates `Formula/coder.rb` for a new v2 release.
30-
- `scripts/update-v1.sh`: Updates `Formula/coder@1.rb` for a new v1 release.
3128

3229
# Essential commands
3330

@@ -78,18 +75,13 @@ Typical changes are version bumps (updating `version`, `url`, and `sha256`) and
7875

7976
## Release/update helpers
8077

81-
> Note: `scripts/update-*.sh` use GNU `sed` flags (`-z` and `-i` without a backup extension). They’re expected to run in a GNU `sed` environment (e.g., Linux). If you’re on macOS with BSD `sed`, run them in a Linux container or adjust the commands.
78+
> Note: `scripts/update-v2.sh` uses GNU `sed` flags (`-z` and `-i` without a backup extension). It’s expected to run in a GNU `sed` environment (e.g., Linux). If you’re on macOS with BSD `sed`, run them in a Linux container or adjust the commands.
8279
8380
- Update **Coder v2** formula (`Formula/coder.rb`):
8481
```sh
8582
./scripts/update-v2.sh "<version>" "<darwin-arm64-sha256>" "<darwin-amd64-sha256>" "<linux-amd64-sha256>"
8683
```
8784

88-
- Update **Coder v1** formula (`Formula/coder@1.rb`):
89-
```sh
90-
./scripts/update-v1.sh "<version>" "<darwin-amd64-sha256>" "<linux-amd64-sha256>"
91-
```
92-
9385
- Computing SHA256 for downloaded artifacts:
9486
```sh
9587
# macOS
@@ -103,9 +95,9 @@ Typical changes are version bumps (updating `version`, `url`, and `sha256`) and
10395

10496
## Version bumps (formulae)
10597

106-
- Keep the `version` value and the `url` templates in sync.
98+
- There is no `version` stanza; Homebrew scans the version from the download URLs. A bump rewrites the version in every `url` line, and `scripts/update-v2.sh` fails if it does not end up with all three.
10799
- For `Formula/coder.rb`, there are **three** `sha256` entries (macOS arm64, macOS amd64, Linux amd64).
108-
- The update scripts replace the **1st/2nd/3rd** `sha256` occurrence; avoid reordering or inserting extra `sha256` lines without updating `scripts/update-v2.sh`.
100+
- `scripts/update-v2.sh` replaces the **1st/2nd/3rd** `sha256` occurrence; avoid reordering or inserting extra `sha256` lines without updating `scripts/update-v2.sh`.
109101
- Prefer **deterministic** `test do` blocks (fast, no external state). If tests must fail, use `shell_output(cmd, expected_exit_code)` like `Formula/coder.rb`.
110102

111103
## Version bumps (casks)
@@ -115,7 +107,7 @@ Typical changes are version bumps (updating `version`, `url`, and `sha256`) and
115107

116108
# Anti-patterns
117109

118-
- Don’t reorder `sha256` lines in formulae if you still rely on `scripts/update-*.sh` (they patch by “nth match”).
110+
- Don’t reorder `sha256` lines in formulae if you still rely on `scripts/update-v2.sh` (it patches by “nth match”).
119111
- Don’t add network-dependent tests or long-running integration tests to formulae; Homebrew formula tests should be quick and reproducible.
120112

121113
# Commit and Pull Request Guidelines
@@ -136,7 +128,6 @@ Typical changes are version bumps (updating `version`, `url`, and `sha256`) and
136128
Recent history uses concise, release-oriented subjects. Prefer:
137129

138130
- `coder <version>` for `Formula/coder.rb` bumps (example: `coder 2.30.0`).
139-
- `coder@1 <version>` or similar for v1 bumps.
140131
- `Coder Desktop v<version>` for cask releases.
141132

142133
## Pull requests

‎Formula/coder@1.rb‎

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

‎README.md‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,4 @@ Provides official formulae for [Coder] products
1010
brew install coder/coder/coder
1111
```
1212

13-
#### Install Coder v1 (legacy)
14-
15-
```sh
16-
brew install coder/coder/coder@1
17-
```
18-
1913
[coder]: https://github.com/coder/coder

‎formula_renames.json‎

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

‎scripts/update-v1.sh‎

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

0 commit comments

Comments
 (0)