You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2edc1fd
Browse filesBrowse the repository at this point in the historyBrowse files
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.
-`formula_renames.json`: Maps historical formula names to current ones.
29
27
-`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.
31
28
32
29
# Essential commands
33
30
@@ -78,18 +75,13 @@ Typical changes are version bumps (updating `version`, `url`, and `sha256`) and
78
75
79
76
## Release/update helpers
80
77
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.
82
79
83
80
- Update **Coder v2** formula (`Formula/coder.rb`):
@@ -103,9 +95,9 @@ Typical changes are version bumps (updating `version`, `url`, and `sha256`) and
103
95
104
96
## Version bumps (formulae)
105
97
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.
107
99
- 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`.
109
101
- Prefer **deterministic**`test do` blocks (fast, no external state). If tests must fail, use `shell_output(cmd, expected_exit_code)` like `Formula/coder.rb`.
110
102
111
103
## Version bumps (casks)
@@ -115,7 +107,7 @@ Typical changes are version bumps (updating `version`, `url`, and `sha256`) and
115
107
116
108
# Anti-patterns
117
109
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”).
119
111
- Don’t add network-dependent tests or long-running integration tests to formulae; Homebrew formula tests should be quick and reproducible.
120
112
121
113
# Commit and Pull Request Guidelines
@@ -136,7 +128,6 @@ Typical changes are version bumps (updating `version`, `url`, and `sha256`) and
136
128
Recent history uses concise, release-oriented subjects. Prefer:
137
129
138
130
-`coder <version>` for `Formula/coder.rb` bumps (example: `coder 2.30.0`).
0 commit comments