We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b390352 commit 1b6efc1Copy full SHA for 1b6efc1
internal/nix/nix.go
@@ -82,14 +82,7 @@ func (*Nix) PrintDevEnv(ctx context.Context, args *PrintDevEnvArgs) (*PrintDevEn
82
if insecure, insecureErr := IsExitErrorInsecurePackage(err, "" /*installable*/); insecure {
83
return nil, insecureErr
84
} else if err != nil {
85
- safeArgs := make([]string, 0, len(cmd.Args))
86
- for _, a := range cmd.Args {
87
- if a == args.FlakeDir {
88
- a = "<redacted path>"
89
- }
90
- safeArgs = append(safeArgs, a)
91
92
- return nil, redact.Errorf("nix command: %s", redact.Safe(safeArgs))
+ return nil, redact.Errorf("nix print-dev-env --json \"path:%s\": %w", flakeDirResolved, err)
93
}
94
95
if err := json.Unmarshal(data, &out); err != nil {
0 commit comments