Ctx update command aint updating ctx
Description
I run ctx update command, but the version stays the same:
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 |
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.
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