Introduce `self-update` command like Composer does
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?
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.
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
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.
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
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: @.***>
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. :)