Skip to content

[nix] ensure nix is installed for generate and envsec commands #1710

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 2 commits into from
Jan 10, 2024

Conversation

mikeland73
Copy link
Contributor

Summary

TSIA

How was it tested?

ran generate, envsec commands and it worked as expected.

Tested version check by temporarily requiring minimum version above mine.

@mikeland73 mikeland73 requested review from savil and mohsenari January 9, 2024 20:18
}

// We return a closure to avoid printing the warning every time and just
// printing it if we actually need the value of the flag.
//
// TODO: devbox.Open should run nix.EnsureNixInstalled and do this logic
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see the PR I had shared for when I reverted this change .

To make it happen, we'll need to audit many callsites and ensure scenarios like devbox version don't end up invoking devbox.Open

from the PR, here are the callsites for devbox version that led to devbox.Open being called: https://gist.github.com/savil/0fff37124abae3d1c0088404c05a73cc

@mikeland73 mikeland73 merged commit 5814521 into main Jan 10, 2024
@mikeland73 mikeland73 deleted the landau/ensure-nix branch January 10, 2024 23:34
Copy link

sentry-io bot commented Jan 23, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ **Generic Error: <redacted errors.withStack>: <redacted usererr.combined> go.jetpack.io/devbox/internal/boxcli/usererr in... View Issue

Did you find this useful? React with a 👍 or 👎

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