Skip to content

Conversation

mohsenari
Copy link
Collaborator

@mohsenari mohsenari commented Jan 6, 2023

Summary

Title says it
This is step 2 out of 4 for simplifying direnv integration with devbox

How was it tested?

  • compile
  • run devbox init
  • confirm a .envrc file is created

if !filesExist { // don't overwrite an existing .envrc
err := generate.CreateEnvrc(tmplFS, dir)
if err != nil {
return false, errors.WithStack(err)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should we ignore this? if .envrc creation fails, should we just move forward with devbox init flow and not interrupt?

Copy link
Collaborator

Choose a reason for hiding this comment

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

yeah, you can print a warning via debug.Log but probably not worth concerning a user about.

Base automatically changed from mohsen--envrc-on-init to main January 9, 2023 17:11
mohsenari and others added 2 commits January 9, 2023 12:12
@mohsenari mohsenari merged commit 0e9bc3a into main Jan 9, 2023
@mohsenari mohsenari deleted the mohsen--envrc-on-init-2 branch January 9, 2023 23:58
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