Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
savil committed Jun 9, 2023
1 parent 5b58a33 commit 319b0ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/impl/devbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -847,9 +847,13 @@ func (d *Devbox) computeNixEnv(ctx context.Context, usePrintDevEnvCache bool) (m
buildInputs := strings.Split(env["buildInputs"], " ")
nixEnvPath = filterPathList(nixEnvPath, func(path string) bool {
for _, input := range buildInputs {
if strings.TrimSpace(input) == "" {
continue
}
// input is of the form: /nix/store/<hash>-<package-name>-<version>
// path is of the form: /nix/store/<hash>-<package-name>-<version>/bin
if strings.HasPrefix(path, input) {
debug.Log("returning false for path %s and input %s\n", path, input)
return false
}
}
Expand Down

0 comments on commit 319b0ab

Please sign in to comment.