devbox icon indicating copy to clipboard operation
devbox copied to clipboard

[Bug]: 0.5.8 keeps prompting me to update

Open bangau1 opened this issue 3 years ago • 3 comments

Current Behavior (bug) I keep seeing this prompt everytime I open new shell session, eventhough I have updated it to version 0.5.8

Ensuring packages are installed.
Ensuring packages are installed.
Info: New devbox available: 0.5.7 -> v0.5.8. Please run `devbox version update`.

Expected Behavior (fix) After update to 0.5.8, it shouldn't prompt me this notice anymore

Additional context Please include the output of devbox version -v and a copy of your devbox.json file.

Screenshot 2023-07-28 at 11 43 21 ``` $ devbox version -v Version: 0.5.8 Platform: darwin_arm64 Commit: 26d533dd197f24a0c640126ba37e5c0b699d5ae2 Commit Time: 2023-07-26T00:00:22Z Go Version: go1.20.6 Launcher: 0.2.0 ```

my global devbox.json

{
  "packages": [
    "go@latest",
    "[email protected]",
    "terraform@latest",
    "terragrunt@latest",
    "kubergrunt@latest",
    "kubectx@latest",
    "awscli2@latest",
    "stern@latest",
    "git@latest",
    "htop@latest",
    "gh@latest",
    "glab@latest",
    "fzf@latest",
    "ripgrep@latest",
    "lazygit@latest",
    "jq@latest",
    "yq@latest",
    "neovim@latest",
    "neofetch@latest",
    "btop@latest",
    "cheat@latest",
    "tree-sitter@latest",
    "nodejs@latest",
    "python3Full@latest",
    "bat@latest",
    "direnv@latest",
    "oh-my-zsh@latest",
    "postgresql@latest",
    "gomplate@latest"
  ],
  "env": {
    "DEVBOX_GLOBAL_PREFIX": "$HOME/.local/share/devbox/global/default/.devbox/nix/profile/default",
    "DEVBOX_GLOBAL_ROOT": "$HOME/.local/share/devbox/global/current"
  },
  "shell": {
    "init_hook": [
      ". ${DEVBOX_GLOBAL_ROOT}/init.sh"
    ],
    "scripts": {
      "install-hook-bash": [
        "echo adding 'devbox global shellenv' to ~/.bashrc",
        "grep -qF 'devbox global shellenv' ~/.bashrc || echo 'eval \"$(devbox global shellenv --init-hook)\"' >> ~/.bashrc",
        "tail -n 1 ~/.bashrc"
      ],
      "install-hook-zsh": [
        "echo adding 'devbox global shellenv' to ~/.zshrc",
        "grep -qF 'devbox global shellenv' ~/.zshrc || echo 'eval \"$(devbox global shellenv --init-hook)\"' >> ~/.zshrc",
        "tail -n 1 ~/.zshrc"
      ],
      "latest-hash": [
        "curl -fsSL https://nixos.org/channels/nixos-unstable/git-revision"
      ],
      "npm-global": [
        "grep -qF '.npm-packages' ~/.npmrc || echo 'prefix=~/.npm-packages' >> ~/.npmrc",
        "grep -qF '.npm-packages' ~/.zshrc || echo 'export PATH=$PATH:~/.npm-packages/bin' >> ~/.zshrc",
        "grep -qF '.npm-packages' ~/.bashrc || echo 'export PATH=$PATH:~/.npm-packages/bin' >> ~/.bashrc",
        "mkdir -p ~/.npm-packages"
      ]
    }
  },
  "nixpkgs": {}
}

bangau1 avatar Jul 28 '23 04:07 bangau1

Hey @bangau1, try running devbox global install to see if that clears the notification. We should have a fix out first thing in the morning.

Lagoja avatar Jul 28 '23 05:07 Lagoja

@Lagoja thanks for the tips, your suggestion works! Should I close this issue?

bangau1 avatar Jul 28 '23 05:07 bangau1

Thanks for reporting back @bangau1. If everything works then we can close this out.

gcurtis avatar Jul 28 '23 17:07 gcurtis