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

[devbox.Open] drop ensureNixInstalled function call #1453

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

savil
Copy link
Collaborator

@savil savil commented Sep 5, 2023

Summary

Problem:
Commands like devbox version are installing nix.

Cause:
By inserting a debug.PrintStack() one can see that devbox.Open is invoked
for devbox version from a few places. In the latest 0.5.12 release, we added
a call to ensureNixInstalled in devbox.Open. Hence even though we don't set PreRunE: ensureNixInstalled
in the command, the nix install is triggered.

The original motivation for adding this call in devbox.Open was that nix is pretty widely used in the Devbox
library, and we should add ensureNixInstalled as a check.

How was it tested?

compiles

will rely on tests to pass

Copy link
Collaborator Author

savil commented Sep 5, 2023

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@savil
Copy link
Collaborator Author

savil commented Sep 5, 2023

waiting for tests to pass

github-merge-queue bot pushed a commit to jetify-com/devbox-install-action that referenced this pull request Sep 5, 2023
@savil savil merged commit 9e85678 into main Sep 5, 2023
15 checks passed
@savil savil deleted the savil/hotfix-drop-ensure-nix branch September 5, 2023 23:37
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