4 ms·
Maybe I have my search syntax wrong. Suppose I want to search for go projects with a flake.nix in the repo root. This finds nothing: language:Go path:/fla
by __MatrixMan__ 1y ago
Maybe I have my search syntax wrong. Suppose I want to search for go projects with a flake.nix in the repo root. This finds nothing:
language:Go path:/flake.nix
I know they exist though, for instance here's one: github.com/joerdav/xc
Can you tell me where I've gone wrong?
- simonw 1y agoThat's searching for files that are in the Go language but are flake.nix files - which is 0 results because flake.nix files are not written in Go. This seems to work; path:/flake.nix go https://github.com/search?q=path%3A%2Fflake.nix%20go&type=code https://github.com/search?q=path%3A%2Fflake.nix%20go&type=co...
- __MatrixMan__ 1y agoI see, I thought it would be matching the repo's contained languages, not the file's language. Thanks for clearing that up for me. Searching for "go" as a substring turns up a lot of false positives, but at least now I know the search is not flat out broken.