jetify-com / devbox

Instant, easy, and predictable development environments
https://www.jetify.com/devbox/
Apache License 2.0
7.94k stars 191 forks source link

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

Open mikeland73 opened 2 months ago

mikeland73 commented 2 months ago

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

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