generator icon indicating copy to clipboard operation
generator copied to clipboard

Ctx update command aint updating ctx

Open savinmikhail opened this issue 1 year ago • 2 comments

Description

I run ctx update command, but the version stays the same:

Image Image

How To Reproduce

Download old version, like 1.31, run ctx update, run ctx --version, expect to see 1.32, but you will see only 1.31 Also I am aware that updating happens in background, but I waited few days and it still aint happened

Additional Info

Q A
Library Version 1.31
PHP Version 8.4
Operating System Darwin

savinmikhail avatar Oct 13 '25 09:10 savinmikhail

Same problem on Ubuntu. The problem may be due to the lack of permissions to move the executable file.

For exampe, command curl -sSL https://raw.githubusercontent.com/context-hub/generator/main/download-latest.sh | sh says:

mv: cannot move '/tmp/ctx-1.32.0-linux-amd64-OnqOtoLCD' to '/usr/local/bin/ctx': Permission denied
 [ERROR] Failed to move binary to /usr/local/bin/ct

but ctx update does not said anything.

Kaspiman avatar Oct 28 '25 05:10 Kaspiman

I managed to update (1.27 -> 1.32) via ctx update running it from binary location (~/.local/bin in my case). Running it from any other directory caused script to store binary in that directory

I suspect, you have a 1.32 binary stored inside /Users/mikhailsavin/projects/kr_digital/dit/sphere-backend/ctx now

Crock0il avatar Nov 13 '25 11:11 Crock0il