Skip to content

[devbox.Open] drop ensureNixInstalled function call#1453

Merged
savil merged 1 commit intomainfrom
savil/hotfix-drop-ensure-nix
Sep 5, 2023
Merged

[devbox.Open] drop ensureNixInstalled function call#1453
savil merged 1 commit intomainfrom
savil/hotfix-drop-ensure-nix

Conversation

@savil
Copy link
Copy Markdown
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
Copy Markdown
Collaborator Author

savil commented Sep 5, 2023

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@savil savil requested review from gcurtis and mikeland73 September 5, 2023 23:13
@savil
Copy link
Copy Markdown
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
@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