Skip to content

Bump blueprints.phar to v0.8.1 (fix git:directory ref HEAD)#3631

Open
ivan-ottinger wants to merge 1 commit into
trunkfrom
stu-1763-bump-blueprints-phar
Open

Bump blueprints.phar to v0.8.1 (fix git:directory ref HEAD)#3631
ivan-ottinger wants to merge 1 commit into
trunkfrom
stu-1763-bump-blueprints-phar

Conversation

@ivan-ottinger
Copy link
Copy Markdown
Contributor

@ivan-ottinger ivan-ottinger commented May 28, 2026

Related issues

Proposed Changes

The previously bundled PHAR built refs/heads/HEAD as a literal branch name when callers passed ref: "HEAD", so any Blueprint using git:directory with ref: "HEAD" failed on the native PHP runtime with GitRemoteException: Branch "refs/heads/HEAD" not found on remote origin. v0.8.1 ships the upstream fix.

This PR is intentionally scoped to the PHAR bump — auto-install (removed in #3491) is intentionally not touched here.

Testing Instructions

  1. Pull this branch and run npm install (no source changes; the PHAR is the only file that moves).
  2. In Studio, enable the Native PHP runtime beta flag.
  3. Create a new site from the WooCommerce blueprint.
  4. Confirm the site is created without the Failed to start WordPress server: PHP command failed error and that wp-content/plugins/wc-smooth-generator/ is present in the new site.

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

The previously bundled PHAR built `refs/heads/HEAD` as a literal branch
name when callers passed `ref: "HEAD"`, breaking gallery blueprints like
Commerce on the native PHP runtime. v0.8.1 contains the upstream fix
(WordPress/php-toolkit#294) to GitRemote::fetch, which now resolves HEAD
as the symref it is.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


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

@ivan-ottinger ivan-ottinger requested review from a team, bcotrim and fredrikekelund May 28, 2026 08:41
@wpmobilebot
Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing 1bf1045 vs trunk

app-size

Metric trunk 1bf1045 Diff Change
App Size (Mac) 1335.89 MB 1335.40 MB 0.49 MB ⚪ 0.0%

site-editor

Metric trunk 1bf1045 Diff Change
load 1803 ms 1810 ms +7 ms ⚪ 0.0%

site-startup

Metric trunk 1bf1045 Diff Change
siteCreation 9603 ms 9590 ms 13 ms ⚪ 0.0%
siteStartup 4918 ms 4917 ms 1 ms ⚪ 0.0%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff)

@fredrikekelund
Copy link
Copy Markdown
Contributor

Thanks for looking into this, @ivan-ottinger 👍 However, the static blueprints.phar also contains WordPress/php-toolkit#280 and WordPress/php-toolkit#281. We need both of those patches, too. So until they're merged, we'll need to rebuild a static blueprints.phar against the latest version, with both of those patches applied, too

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.

4 participants