Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mikeland73 opened this issue Apr 23, 2024 · 0 comments
Open
Labels
bug Something isn't working triage Issue needs triage

Comments

@mikeland73
Copy link
Contributor

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 mikeland73 added bug Something isn't working triage Issue needs triage labels Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Issue needs triage
Development

No branches or pull requests

1 participant