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

Python autopatching does not work when Devbox is installed via Flake #2401

Open
Lagoja opened this issue Nov 2, 2024 · 0 comments · May be fixed by #2406
Open

Python autopatching does not work when Devbox is installed via Flake #2401

Lagoja opened this issue Nov 2, 2024 · 0 comments · May be fixed by #2406
Assignees
Labels
bug Something isn't working triage Issue needs triage

Comments

@Lagoja
Copy link
Contributor

Lagoja commented Nov 2, 2024

What happened?

As of Devbox 0.13.6, we attempt to add Devbox to the Nix store so we can use it in the patch flake when auto-patching Python. When using Devbox installed from the Flake, the patching fails with the following error:

❯ devbox add python@3.11
Info: Adding package "python@3.11" to devbox.json
✓ Computed the Devbox environment.

Error: There was an error installing nix packages
source: nix: command error: nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' print-dev-env --json path:/Users/johnlago/src/cling-notebook/.devbox/gen/flake: unable to download 'https://api.github.com/repos/jetify-com/devbox/commits/0.13.6-0bc66cb': HTTP error 422: exit code 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/jetify-com/devbox/issues
(devbox)

Simplest fix is to change the version string in the Flake to match our standard installer, though we'll probably need a different approach for non-release builds?

Steps to reproduce

  1. Install devbox with nix profile install github:jetify-com/devbox/latest
  2. Create a new Devbox project
  3. Add Python with devbox add python

Command

add

devbox.json

No response

Devbox version

0.13.6-0bc66cb

Nix version

2.24.7

What system does this bug occur on?

macOS (Apple Silicon)

Debug logs

No response

@Lagoja Lagoja added bug Something isn't working triage Issue needs triage labels Nov 2, 2024
jkinred added a commit to jkinred/devbox that referenced this issue Nov 6, 2024
Fixes the issue described in
jetify-com#2401.

Signed-off-by: Jonathan Kinred <jkinred@linuxfoundation.org>
@Lagoja Lagoja linked a pull request Nov 8, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants