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

Function splitOutputSpec

nix/flake/flakeref.go:731–736  ·  view source on GitHub ↗

splitOutputSpec cuts a flake installable around the last instance of ^.

(s string)

Source from the content-addressed store, hash-verified

729
730// splitOutputSpec cuts a flake installable around the last instance of ^.
731func splitOutputSpec(s string) (before, after string) {
732 if i := strings.LastIndexByte(s, '^'); i >= 0 {
733 return s[:i], s[i+1:]
734 }
735 return s, ""
736}

Callers 1

ParseInstallableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected