File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import (
20
20
func (d * Devbox ) profileDir () (string , error ) {
21
21
absPath := filepath .Join (d .projectDir , nix .ProfilePath )
22
22
23
- // Ensure the directory is cleared of old state if the Flakes feature has been turned on (or off)
24
23
if err := resetProfileDirForFlakes (absPath ); err != nil {
25
24
debug .Log ("ERROR: resetProfileDirForFlakes error: %v\n " , err )
26
25
}
@@ -223,6 +222,8 @@ func (d *Devbox) pendingPackagesForInstallation() ([]string, error) {
223
222
224
223
var resetCheckDone = false
225
224
225
+ // resetProfileDirForFlakes ensures the profileDir directory is cleared of old
226
+ // state if the Flakes feature has been changed, from the previous execution of a devbox command.
226
227
func resetProfileDirForFlakes (profileDir string ) (err error ) {
227
228
if resetCheckDone {
228
229
return nil
You can’t perform that action at this time.
0 commit comments