(s string)
| 7 | ) |
| 8 | |
| 9 | func IsFlake(s string) bool { |
| 10 | if IsRunX(s) { |
| 11 | return false |
| 12 | } |
| 13 | parsed, err := flake.ParseInstallable(s) |
| 14 | if err != nil { |
| 15 | return false |
| 16 | } |
| 17 | if IsAmbiguous(s, parsed) { |
| 18 | return false |
| 19 | } |
| 20 | return true |
| 21 | } |
| 22 | |
| 23 | // IsAmbiguous returns true if a package string could be a Devbox package or |
| 24 | // a flake installable. For example, "nixpkgs" is both a Devbox package and a |
no test coverage detected