castor icon indicating copy to clipboard operation
castor copied to clipboard

Introduce `self-update` command like Composer does

Open ruudk opened this issue 1 year ago • 3 comments

See https://github.com/jolicode/castor/issues/537, why do we have to copy installer scripts and run it. Feels unsafe and annoying on day to day.

Can we introduce a self-update command so that we can use castor self-update like Composer does?

ruudk avatar Oct 21 '24 06:10 ruudk

I'm generally against it, but I'm changing my mind.

I was against it because it's difficult (many projects have abandoned this feature).

But Composer is capable of doing it, so I'm all for giving it a try.

lyrixx avatar Oct 21 '24 08:10 lyrixx

Brainstorming:

How about if castor --version returned the version that was running and a notification about the current version, along with instructions about how to install it?

castor --version
castor v1.0.0
castor v1.0.2 is available, install it by running

    curl "https://castor.jolicode.com/install" | bash

tacman avatar Nov 14 '25 11:11 tacman

Hmm, I see that this is in fact how it will work. I hadn't see it because I'm still on version 1, but may I will when the next release is out.

tacman avatar Nov 14 '25 11:11 tacman

How about if castor --version returned the version that was running and a notification about the current version, along with instructions about how to install it?

Good idea. Would you mind to submit a PR? Thanks

lyrixx avatar Nov 26 '25 09:11 lyrixx

Sure. Can you point me to what file? I'll look at it after SymfonyCon. Are you attending the conference?

On Wed, Nov 26, 2025 at 10:12 AM Grégoire Pineau @.***> wrote:

lyrixx left a comment (jolicode/castor#538) https://github.com/jolicode/castor/issues/538#issuecomment-3580327661

How about if castor --version returned the version that was running and a notification about the current version, along with instructions about how to install it?

Good idea. Would you mind to submit a PR? Thanks

— Reply to this email directly, view it on GitHub https://github.com/jolicode/castor/issues/538#issuecomment-3580327661, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEXIQINF72WRGBRDI4J3B336VVH3AVCNFSM6AAAAACMDJZRZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTKOBQGMZDONRWGE . You are receiving this because you commented.Message ID: @.***>

tacman avatar Nov 26 '25 09:11 tacman

Sure. Can you point me to what file? I'll look at it after SymfonyCon.

We will take care of it. Thanks

Are you attending the conference?

No-one from JoliCode will attend the SF Con this year 🥺


We are hijacking the initial conversation here. Let's discuss off topics somewhere else. :)

lyrixx avatar Nov 26 '25 09:11 lyrixx