devbox icon indicating copy to clipboard operation
devbox copied to clipboard

[Bug]: Updating to 0.8.1 "Error: unknown flag: --update-devbox-symlink"

Open jskulski opened this issue 2 years ago • 4 comments

Current Behavior (bug)

This may be a non issue since behavior wasn't affected afaict. I received a failure on updating devbox. I believe from 0.7.1, this terminal closed so I am working from memory. I am running Mac OS 13.6.2.

After this error, devbox had some hanging behavior when running devbox shell. First without output, then with Ensuring packages are installed...

Then, I removed the devbox.json (it was just init'd) and was able to devbox shell without an issue.

It seemingly is running fine now.

❯ devbox version update
→ Downloading version 0.8.1...
✓ Downloading version 0.8.1... [DONE]
✓ Verifying checksum... [DONE]
✓ Unpacking binary... [DONE]

Error: unknown flag: --update-devbox-symlink

Error: exit status 1

Error: runtime error: invalid memory address or nil pointer dereference

Expected Behavior (fix)

Devbox updated successfully.

Additional context

Note, this is after update failure:

~ via ❄️  impure (nix-shell-env) 
❯ devbox version -v
Version:     0.8.1
Platform:    darwin_arm64
Commit:      a0bdff918b3dde5ebcfc488f72df5efdf3426253
Commit Time: 2023-11-07T21:43:27Z
Go Version:  go1.21.3
Launcher:    0.2.0

a copy of your devbox.json file.

N/A

jskulski avatar Nov 09 '23 21:11 jskulski

I had the same error when I tried devbox version update for the first time. I retried the exact command, and it was fine on the second run.

The output from the first run:

✓ Downloading version 0.8.1... [DONE]
✓ Verifying checksum... [DONE]
✓ Unpacking binary... [DONE]

Error: unknown flag: --update-devbox-symlink

Error: exit status 1

Error: There was an internal error. Run with DEVBOX_DEBUG=1 for a detailed error message, and consider reporting it at https://github.com/jetpack-io/devbox/issues

The output from the second run:

Version:     0.8.1
Platform:    linux_amd64
Commit:      a0bdff918b3dde5ebcfc488f72df5efdf3426253
Commit Time: 2023-11-07T21:43:27Z
Go Version:  go1.21.3
Launcher:    0.2.0
Success: already at Devbox version 0.8.1

przemek-pokrywka avatar Nov 10 '23 06:11 przemek-pokrywka

I had the same issue. I was upgrading 0.7.1 => 0.8.1 in case that helpful.

altano avatar Nov 12 '23 01:11 altano

I had the same issue. I was upgrading from 0.5.13 to 0.8.2.

$ devbox version update
✓ Downloading version 0.8.2... [DONE]
✓ Verifying checksum... [DONE]
✓ Unpacking binary... [DONE]

Error: unknown flag: --update-devbox-symlink

Error: exit status 1

Error: There was an internal error. Run with DEVBOX_DEBUG=1 for a detailed error message, and consider reporting it at https://github.com/jetpack-io/devbox/issues

After this error I ran the same command again:

$ devbox version update
Version:     0.8.2
Platform:    darwin_arm64
Commit:      33ea788cb4dbf6958208669c9e4df9c1e858ad2c
Commit Time: 2023-11-15T00:23:52Z
Go Version:  go1.21.3
Launcher:    0.2.0
Success: already at Devbox version 0.8.2

alexvetter avatar Dec 01 '23 14:12 alexvetter

Curious if others in this thread are now running into an issue where updating the Launcher from 0.20 to 0.21 completes successfully but doesn't actually update, staying at 0.20.

Reported here: https://github.com/jetpack-io/devbox/issues/1691

jskulski avatar Dec 21 '23 18:12 jskulski