-
Notifications
You must be signed in to change notification settings - Fork 349
Open
Description
While --wp=6.8
resolving to “6.8.3” is likely intentional, it makes it impossible to run WP 6.8 (or other minor releases) without providing a URL.
Of course, trying --wp=6.8.0
doesn't work because that's not how the 6.8 zip is named.
The relevant part of resolveWordPressRelease
:
wordpress-playground/packages/playground/wordpress/src/index.ts
Lines 699 to 707 in b5dab89
} else if ( | |
apiVersion.version.substring(0, versionQuery.length) === | |
versionQuery | |
) { | |
return { | |
releaseUrl: apiVersion.download, | |
version: apiVersion.version, | |
source: 'api', | |
}; |
It's easy enough to make this keep the version as specified but that loses the convenience of resolving to the latest patch release.
I propose something like one of the following:
- Support a wildcard like
--wp=6.8.x
for getting the latest patch version and changing current resolution behavior so6.8
resolves to exactly that. - Support a special format like
--wp=6.8!
to keep current resolution behavior and allow a way to specify unpatched minor version.
Thank you for considering this matter 🙇.
Metadata
Metadata
Assignees
Labels
No labels