MCPcopy Create free account
hub / github.com/jetify-com/devbox / EvalPackageName

Function EvalPackageName

internal/nix/eval.go:10–17  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

8)
9
10func EvalPackageName(path string) (string, error) {
11 cmd := Command("eval", "--raw", path+".name")
12 out, err := cmd.Output(context.TODO())
13 if err != nil {
14 return "", err
15 }
16 return string(out), nil
17}
18
19// PackageIsInsecure is a fun little nix eval that maybe works.
20func PackageIsInsecure(path string) bool {

Callers 1

StoreNameMethod · 0.92

Calls 2

CommandFunction · 0.70
OutputMethod · 0.45

Tested by

no test coverage detected