Repository navigation
chore: release PHP# 0.4.0 with mago 0.4.0 - #180
Merged
Merged
Conversation
Problem:
PHP# v1 is feature complete on master, and the tag v0.4.0 releases it.
release.yml fails unless PHP_SHARP_VERSION in ext/sharp/php_sharp.h and
the version in sharp/mago/Cargo.toml both equal the tag, and both are
0.3.1. Mago's docs tell users to install 0.3.1, and its extension docs
require heyjordanparker/mago-sharp ^0.3, which Composer reads as below
0.4.0, so an extension written from them refuses mago-sharp 0.4.0.
Solution:
- php_sharp.h defines PHP_SHARP_VERSION "0.4.0", so php --ri sharp and
phpversion('sharp') report 0.4.0, and ri_sharp.phpt expects it.
- php sharp/mago/scripts/set-version.php 0.4.0 sets the version of
Mago's manifest, of every Mago package in Cargo.lock, and of its
install, configuration and upgrading docs. The script now also lists
the extension and GitHub Actions docs, which the 0.3.1 release changed
by hand.
- The version pin examples in self-update's help and the configuration's
schema, and the tag example in install.sh, name 0.4.0.
.
├── Zend/tests/sharp/
│ └── ri_sharp.phpt <- Version => 0.4.0
├── ext/sharp/
│ └── php_sharp.h <- PHP_SHARP_VERSION "0.4.0"
└── sharp/mago/
├── Cargo.toml, Cargo.lock <- every Mago package at 0.4.0
├── README.md <- --version=0.4.0
├── docs/content/{en,fr,zh}/
│ ├── guide/ <- 0.4.0 installs and exact pins, "0.4" minor pins
│ ├── recipes/github-actions.md <- mago-sharp:^0.4.0
│ └── en/extensions/ <- mago-sharp ^0.4
├── scripts/
│ ├── install.sh <- tag example v0.4.0
│ └── set-version.php <- lists the extension and GitHub Actions docs
└── src/
├── commands/self_update.rs <- pin examples 0.4 and 0.4.0
└── config/mod.rs <- pin examples 0.4 and 0.4.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
PHP# v1 is feature complete on master, and the tag
v0.4.0releases it..github/workflows/release.ymlfails unlessPHP_SHARP_VERSIONinext/sharp/php_sharp.hand theversioninsharp/mago/Cargo.tomlboth equal the tag, and both are 0.3.1. Mago's docs tell users to install 0.3.1, and its extension docs requireheyjordanparker/mago-sharp^0.3, which Composer reads as below 0.4.0.Solution
php_sharp.hdefinesPHP_SHARP_VERSION "0.4.0", sophp --ri sharpreportsVersion => 0.4.0, andri_sharp.phptexpects it.php sharp/mago/scripts/set-version.php 0.4.0sets Mago's manifest, every Mago package inCargo.lock, and its install, configuration, upgrading, extension and GitHub Actions docs to 0.4.0. The script now lists the extension and GitHub Actions docs, which the 0.3.1 release changed by hand.mago self-update --helpand the configuration schema, and the tag example ininstall.sh, name 0.4.0.Verification
sharp/bin/build, thenphp -n --ri sharpprintsVersion => 0.4.0.sharp/bin/test Zend/tests/sharp/ri_sharp.phptpasses, aftermago compilecompiled 556 PHP# files.magothatsharp/bin/testbuilt printsmago 0.4.0formago --version.git grep -n "0\.3\.1"lists third-party crates inCargo.lock, upstream php-src files, and two slice records indocs/architecture/slices/of what a past build printed.