Skip to content

fix(ci): take pkgver from the tag instead of release-please's extra-files - #13

Merged
phmatray merged 1 commit into
mainfrom
fix/pkgver-from-the-tag
Sep 4, 2026
Merged

fix(ci): take pkgver from the tag instead of release-please's extra-files#13
phmatray merged 1 commit into
mainfrom
fix/pkgver-from-the-tag

Conversation

@phmatray

@phmatray phmatray commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #12, from watching its own release-please run.

Listing PKGBUILD under extra-files made release-please fail to build a release PR at all:

✔ Building candidate release pull request for path: .
❯ error message: Error: unexpected token '(' at 6:32, valid tokens [)]
✔ No user facing commits found since 8807472 - skipping

So #12 merged, no release PR appeared, and the packaging job it added would never have run. Same shape as the bug #12 was fixing — a release path that silently produces nothing — one layer out.

The packaging job already knows the tag, so it rewrites pkgver before makepkg and greps to confirm. Stricter than the config coupling: the package cannot carry a version its release does not.

Suite: 159 passed, 2 skipped.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SYBhT1xfp3MQ1w3687F4Mp

…iles

Listing PKGBUILD under release-please's `extra-files` made it fail to build a
release PR at all:

    ✔ Building candidate release pull request for path: .
    ❯ error message: Error: unexpected token '(' at 6:32, valid tokens [)]
    ✔ No user facing commits found since 8807472 - skipping

The feat that added the packaging job merged and produced no release PR, so the
package would never have been built — the same shape as the bug it was fixing,
one layer out.

The packaging job knows the tag, so it rewrites pkgver itself before makepkg and
greps to confirm the rewrite landed. That is stricter than the config coupling
was: the built package cannot carry a version the release does not. The value in
the file is now just the fallback for a manual makepkg from a checkout.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SYBhT1xfp3MQ1w3687F4Mp
@phmatray
phmatray merged commit 62dd9af into main Sep 4, 2026
1 check passed
@phmatray
phmatray deleted the fix/pkgver-from-the-tag branch September 4, 2026 23:40
This was referenced Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant