MCPcopy Index your code
hub / github.com/jetify-com/devbox / Version

Method Version

nix/nix.go:125–128  ·  view source on GitHub ↗

Version returns the version from [Nix.Info] or an empty string if there was an error.

()

Source from the content-addressed store, hash-verified

123// Version returns the version from [Nix.Info] or an empty string if there was
124// an error.
125func (n *Nix) Version() string {
126 info, _ := n.Info()
127 return info.Version
128}
129
130// Info returns Nix version information. It caches the result after the first
131// call, which means it won't reflect any configuration changes to Nix. Create a

Callers 4

VersionFunction · 0.80
ErrorFunction · 0.80
getVersionInfoFunction · 0.80
mainFunction · 0.80

Calls 1

InfoMethod · 0.95

Tested by

no test coverage detected