Skip to content

fix(release): bump dist/PKGBUILD-git pkgver alongside other packaging - #51

Merged
tyvsmith merged 1 commit into
mainfrom
fix/release-pkgbuild-git-version
May 31, 2026
Merged

fix(release): bump dist/PKGBUILD-git pkgver alongside other packaging#51
tyvsmith merged 1 commit into
mainfrom
fix/release-pkgbuild-git-version

Conversation

@tyvsmith

Copy link
Copy Markdown
Owner

Summary

  • AUR's facelock-git page shows pkgver=0.1.0 even though the runtime pkgver() resolves to the current commit's version. publish-aur.sh::generate_srcinfo runs makepkg --printsrcinfo in a container that doesn't fetch the git source, so the pkgver() function never runs at SRCINFO generation time — AUR's metadata falls back to the static pkgver= line.
  • Bump the stale static value (0.1.00.1.3) so the AUR display is in sync with facelock and facelock-bin for the current release.
  • Extend the just release recipe to also sed-bump dist/PKGBUILD-git, matching what it already does for dist/PKGBUILD and dist/PKGBUILD-bin, so future releases don't re-drift.

Runtime install behavior is unchanged — paru -S facelock-git still computes the real version via pkgver() against the user's local clone.

Test plan

  • Confirm just release X.Y.Z now bumps dist/PKGBUILD-git's static pkgver= (visual sed inspection)
  • CI green
  • Next release should show matching versions for facelock, facelock-bin, and facelock-git on AUR

🤖 Generated with Claude Code

`publish-aur.sh::generate_srcinfo` runs makepkg in a container that
doesn't fetch the git source, so the `pkgver()` function on
PKGBUILD-git is never executed at SRCINFO time. AUR's web display
then falls back to the static `pkgver=` field, which has been
stuck at 0.1.0 since pre-0.1.1 — visible drift between
`facelock-git` and the other AUR packages.

Fix the current stale value (0.1.0 → 0.1.3) and extend the
`just release` recipe to also bump dist/PKGBUILD-git going forward,
matching what it already does for dist/PKGBUILD and dist/PKGBUILD-bin.

Runtime behavior is unchanged — `paru -S facelock-git` still
computes the real version via `pkgver()` locally.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 31, 2026 18:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Syncs the static pkgver= in dist/PKGBUILD-git with the current release (0.1.3) and extends just release to keep this file in sync on future bumps, preventing the AUR facelock-git page from displaying a stale version (the runtime pkgver() is bypassed during containerized .SRCINFO generation).

Changes:

  • Bump static pkgver in dist/PKGBUILD-git from 0.1.0 to 0.1.3.
  • Add a sed bump for dist/PKGBUILD-git in the just release recipe, mirroring the existing PKGBUILD/PKGBUILD-bin handling.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
dist/PKGBUILD-git Aligns static pkgver with current release version.
justfile Adds dist/PKGBUILD-git to the release-bump sed sequence with an explanatory comment.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tyvsmith
tyvsmith merged commit 26e4116 into main May 31, 2026
4 checks passed
@tyvsmith tyvsmith mentioned this pull request May 31, 2026
9 tasks
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.

2 participants