Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?



That'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=co...


I 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: