Commit 69dcaff
fix(release): make README.md / CHANGELOG.md optional in archive bundling
The .goreleaser.yml `files:` entries were bare filenames (`README.md`,
`CHANGELOG.md`) which goreleaser treats as required: globbing fails
hard when the file doesn't exist:
globbing failed for pattern README.md: matching "./README.md":
file does not exist
This bit v0.4.2 — every release would fail after #168 wiped the docs
until the new reference docs land.
Switch each bare filename to a glob (`README.md*`, `CHANGELOG.md*`).
Goreleaser silently skips patterns that match zero files. The trailing
`*` matches the file when present and nothing when absent — gracefully
covering both "docs landed" and "docs not yet rewritten" states.
`LICENSE*` already used this pattern. No behavior change when a
README is present.
`release-darwin.yml` already wraps its `cp` commands in `|| true`,
so it was unaffected — only goreleaser-side bundling broke.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 61230ae commit 69dcaff
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | | - | |
68 | | - | |
| 72 | + | |
| 73 | + | |
69 | 74 | | |
70 | 75 | | |
71 | 76 | | |
| |||
0 commit comments