wp-cli-bundle icon indicating copy to clipboard operation
wp-cli-bundle copied to clipboard

Add build step for `wp-cli/wp-cli-shim`

Open swissspidy opened this issue 2 years ago • 8 comments

Assumes the existence of a new wp-cli/phar repository with a composer.json such as this one:

{
	"name": "wp-cli/wp-cli-shim",
	"description": "Composer-based WP-CLI Phar",
	"license": ["MIT"],
	"require": {
		"php": ">=5.6"
	},
	"conflict": {
		"wp-cli/wp-cli" : "*"
	},
	"bin": ["wp-cli.phar"]
}

And I think that's all that's needed.

To-do:

  • [ ] Add hashes and/or signature for verification
  • [x] Maybe rename to wp-cli/wp-cli-shim or something

Fixes #134 Fixes https://github.com/wp-cli/ideas/issues/145

swissspidy avatar Oct 27 '23 11:10 swissspidy

@szepeviktor What do you think of this? Does it solve your needs?

danielbachhuber avatar Nov 04 '23 12:11 danielbachhuber

Everything from Pascal gets the Seal of Approval from me.

image

szepeviktor avatar Nov 04 '23 12:11 szepeviktor

@swissspidy The repository was created: https://github.com/wp-cli/wp-cli-shim

schlessera avatar Nov 10 '23 14:11 schlessera

@schlessera Thanks! Can you add me to the repo so I can add an initial composer.json file?

swissspidy avatar Nov 10 '23 14:11 swissspidy

@swissspidy Done.

schlessera avatar Nov 10 '23 15:11 schlessera

@schlessera OK so I pushed a branch intending to create a PR but because it was the first branch that became the default 🤦

https://github.com/wp-cli/wp-cli-shim

Can you make main the default, remove add-v0 and make any other changes as you see fit?

swissspidy avatar Nov 10 '23 15:11 swissspidy

@schlessera OK, so now I suppose what's left is making sure that the ACTIONS_BOT token has access to the new repo, then it should just work.

Once it does, we can tag what's currently in the repo with v2.9.0, afterwards there will be nightly updates people can use with dev-main.

Not sure if we need branch-alias there as well, that would probably complicate things.

swissspidy avatar Nov 10 '23 15:11 swissspidy

@schlessera wanna give this a try for next release?

swissspidy avatar Dec 19 '23 17:12 swissspidy