Skip to content

[minor cleanup] use flake dir instead of flake-file-path in nix print-dev-env #1538

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

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

savil
Copy link
Collaborator

@savil savil commented Oct 6, 2023

Summary

This has been bugging me for many months. Previously, with DEVBOX_DEBUG=1 and doing
some command that evaluated nix print-dev-env, we'd see output like:

path '/Users/savil/code/jetpack/devbox-projects/lagoja-global/.devbox/gen/flake/flake.nix' does not contain a 'flake.nix', searching up

This is because nix print-dev-env expects the path to the flake directory but not including the flake.nix itself.

How was it tested?

changed devbox.json to trigger a re-evaluation of nix print-dev-env, and then
DEVBOX_DEBUG=1 devbox install and didn't see such output

Copy link
Collaborator Author

savil commented Oct 6, 2023

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@savil savil requested review from mikeland73, ipince and gcurtis and removed request for mikeland73 and ipince October 6, 2023 21:11
@savil savil merged commit a7d5dd1 into main Oct 10, 2023
@savil savil deleted the savil/use-flake-dir branch October 10, 2023 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants