Devbox 0.10.0 upgrade fails on `process-compose` install due to changed nix
jay-aye-see-kay opened this issue · comments
What happened?
Description
Upgrade to devbox 0.10.0
and on first devbox services up
we get the error nix profile remove": error: 'nix profile' no longer supports indices ('0')
when trying to upgrade process-compose
A workaround (there might be better ones)
- Find the process-compose package in devbox's nix profile
nix profile list --profile ~/.local/share/devbox/util/profile
- Note the package's name (for us it was
aarch64-darwin
which seems... wrong?) - run
nix profile remove --profile ~/.local/share/devbox/util/profile aarch64-darwin
(replacingaarch64-darwin
with your package name)
Other notes
- this didn't happen on a M1 running nix
2.18.1
, the change in cli must have been introduced sometime between that and2.20.3
Steps to reproduce
- Ensure you have a new-ish
nix
install (was observed on a macOS machine running2.20.3
) - Install devbox
0.9.1
or earlier, rundevbox services up
somewhere to ensure you haveprocess-compose
- upgrade to devbox
0.10.0
and rundevbox services up
somewhere to update to newerprocess-compose
- See error upgrading
"nix profile remove": error: 'nix profile' no longer supports indices ('0')"
Command
No response
devbox.json
No response
Devbox version
0.10.0
Nix version
2.20.3
What system does this bug occur on?
macOS (Apple Silicon)
Debug logs
➜ temp devbox services up
✓ Computed the Devbox environment.
Upgrading process-compose to v0.85.0...
Error: error running "nix profile remove": error: 'nix profile' no longer supports indices ('0')
: 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
Error: exit status 1
Looks like a breaking change in 2.20 that wasn't covered in our profile upgrade. Have a PR that i'm testing now.