Commit 41bd46a
authored
fix(craft): use regex pattern for binary artifact matching (#230)
## Summary
Fixes the broken `curl` install (`curl https://cli.sentry.dev/install |
bash`) which 404s because 0.9.0 shipped without platform binaries.
## Root Cause
Craft's `patternToRegexp()` treats plain strings as **exact matches**,
escaping `*` to `\*`. The pattern `'sentry-*'` in `.craft.yml` became
`/^sentry\-\*$/` — matching only the literal string `"sentry-*"`, not
actual artifact names like `sentry-linux-x64`.
Only `gh-pages` and `npm-package` (exact name matches) were downloaded
and uploaded to the GitHub release. All 5 platform binaries were
silently skipped.
## Fix
Use Craft's regex syntax (`'/^sentry-.*$/'` with enclosing slashes) so
the pattern is parsed as an actual regex.
This was introduced in #215 when migrating from `requireNames` (which
used proper regex `/^sentry-.+$/`) to the new `artifactProvider` config.1 parent 00e589e commit 41bd46a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments