Skip to content

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

Closed
@Lagoja

Description

@Lagoja

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriageIssue needs triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions