devbox icon indicating copy to clipboard operation
devbox copied to clipboard

Doing `devbox update` on legacy (non versioned) packages shows bad error

Open mikeland73 opened this issue 1 year ago • 0 comments

What happened?

I ran devbox update on a devbox.json that only has a single package go and I saw:

Info: Attempting to upgrade go using `nix profile upgrade`
Warning: Failed to upgrade go using `nix profile upgrade`: go: package not foun

I would expect one of the following

  • skip update with a warning indicating non-versioned packages can't be updated.
  • Prompt to turn package into versioned (either current version, or easier, into latest)

Steps to reproduce

Run devbox update on https://github.com/mikeland73/hello-world-server/tree/e63cc70a83b06375a75d30fed3b1945f4eed2522

Command

update

devbox.json

{
  "packages": ["go"],
  "shell": {
    "init_hook": [
      "echo 'Welcome to devbox!' > /dev/null"
    ],
    "scripts": {
      "test": [
        "echo \"Error: no test specified\" && exit 1"
      ]
    }
  }
}

Devbox version

0.10.5

Nix version

No response

What system does this bug occur on?

macOS (Intel)

Debug logs

No response

mikeland73 avatar Apr 23 '24 21:04 mikeland73