{"action":"opened","issue":{"url":"https://api.github.com/repos/NixOS/nix/issues/2316","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/2316/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/2316/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/2316/events","html_url":"https://github.com/NixOS/nix/issues/2316","id":345494421,"node_id":"MDU6SXNzdWUzNDU0OTQ0MjE=","number":2316,"title":"nix search uses same cash regardless of `-f' argument","user":{"login":"matthewbauer","id":19036,"node_id":"MDQ6VXNlcjE5MDM2","avatar_url":"https://avatars0.githubusercontent.com/u/19036?v=4","gravatar_id":"","url":"https://api.github.com/users/matthewbauer","html_url":"https://github.com/matthewbauer","followers_url":"https://api.github.com/users/matthewbauer/followers","following_url":"https://api.github.com/users/matthewbauer/following{/other_user}","gists_url":"https://api.github.com/users/matthewbauer/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewbauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewbauer/subscriptions","organizations_url":"https://api.github.com/users/matthewbauer/orgs","repos_url":"https://api.github.com/users/matthewbauer/repos","events_url":"https://api.github.com/users/matthewbauer/events{/privacy}","received_events_url":"https://api.github.com/users/matthewbauer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-29T02:11:22Z","updated_at":"2018-07-29T02:11:22Z","closed_at":null,"author_association":"MEMBER","body":"Nix search accepts the ```-f``` argument, but it appears it only works with custom paths when you also pass ```-u```. Otherwise the cache will give you the same output regardless. For instance try this file as text.nix:\r\n\r\n```\r\n{\r\n  inherit (import <nixpkgs> {}) hello jq clang file;\r\n}\r\n```\r\n\r\nand running\r\n\r\n```\r\nnix search -f test.nix\r\n```\r\n\r\nYou will see more than the 4 derivations listed above. You can fix this with the ```-u``` arg but then your cache will have to be updated again when you switch:\r\n\r\n```\r\nnix search -u -f test.nix\r\n```"}}
{"actor":{"display_login":"matthewbauer"}}