-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert removal of @wordpress/nux
until WordPress-Develop stops consuming it
#52444
Comments
ProcessBased on my knowledge of lerna and versioning of packages developed in the Gutenberg repository, I think the process for this is going to require a fairly careful order of operations: When tagging the version in the 6.2 branch, we'll be able to rely on Lerna to get the version correct as the tagging history will be in the branch. For the 6.3 and trunk version bumps, a custom version number will need to be specified to ensure the major version numbers are higher than 6.3's version number (6.3 and trunk won't have the new tag from 6.2 in their history). Lerna does not allow skipping the versioning of altered packages, so any changes to other packages will need to have custom versions specified to be minor bumps only. I suspect only nux will need to be published as other packages won't change and will have been bumped for the most recent WP security releases. |
Pinging @WordPress/gutenberg-core on this. The I'm concerned something is going to be missed during a security release and result in incompatible packages been released if we don't resolve the issue for each branch, thus I've created three PRs:
My secondary concern is that the documented process for updating packages doesn't work, which adds extra overhead for committing contributors during a release. So far it's been caught each time. As we're going to need to specify the version numbers for nux manually, the lerna commands will need to be run manually via the command line (suggestions to avoid this are most welcome). My understanding is that these are the commands that will need to be run on each branch:
Once restored, we can try to move the deprecated package out of the way in the lerna workspace but for the 6.3 release simpler is better. |
I don't have much of a nuanced opinion on this, so happy if it doesn't count for much. I understand this proposal to be, in essence, about maintaining backwards compatibility with Core. Given the lengths we go to achieve backwards compatibility in every other area of WordPress, I don't see any controversy in reinstating these packages until they're fully deprecated from Core. |
For the time being, my main priority is to get the package update script working in WP-Dev again. Partly to future proof security updates so the security team don't accidentally downgrade packages during the very hectic release process. In a WP-Dev PR @azaozz suggested nulling the scripts out as a possible approach in the future WordPress/wordpress-develop#3775 (comment) to avoid JavaScript fatals, but that's for another ticket -- which I'll open once this is resolved. |
Having restored to the wp/6.2 and wp/6.3 branches, I can confirm the Leaving this open until the PR for GB trunk is merged. |
I think we can close it now that #52455 got merged. |
Description
In #46110 the
@wordpress/nux
package was removed from the Gutenberg repository. As the WordPress-Develop is still consuming the package, this is causing significant issues while runningnpm run sync-gutenberg-packages
for both thewp-6.2
andwp-6.3
distribution tags.While the script is apparently successful, the incorrect versions of key packages are installed.
@wordpress/components
reverts to version23.9.0
;@wordpress/data
reverts to8.6.0
.Tagging
@wordpress/[email protected]
with the affected distribution tags has been attempted without success, see WP#57643 (comment).Until WordPress-Develop (and thus WordPress releases) stop consuming the script, I think #46110 needs to be reverted in trunk and the affected
wp/*
branches.If lerna can handle the directory structures, then it might be best to place the package out of the way, either in
/packages-deprecated
or/packages/deprecated-packages
. It looks to be possible via thepackages
attribute inlerna.json
.cc @tellthemachines
Step-by-step reproduction instructions
npm run sync-gutenberg-packages -- --dist-tag=wp-6.3
wp-packages:refresh-deps
phase of the script, several scripts will be downgraded:Screenshots, screen recording, code snippet
git diff package.json
after running script at WordPress/wordpress-develop@ab9d5e3Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: