{"action":"created","issue":{"url":"https://api.github.com/repos/zimbatm/direnv/issues/128","labels_url":"https://api.github.com/repos/zimbatm/direnv/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/zimbatm/direnv/issues/128/comments","events_url":"https://api.github.com/repos/zimbatm/direnv/issues/128/events","html_url":"https://github.com/zimbatm/direnv/issues/128","id":35582766,"number":128,"title":"use() in stdlib seems to clash with gvm use $1","user":{"login":"aussielunix","id":261833,"avatar_url":"https://avatars.githubusercontent.com/u/261833?v=3","gravatar_id":"","url":"https://api.github.com/users/aussielunix","html_url":"https://github.com/aussielunix","followers_url":"https://api.github.com/users/aussielunix/followers","following_url":"https://api.github.com/users/aussielunix/following{/other_user}","gists_url":"https://api.github.com/users/aussielunix/gists{/gist_id}","starred_url":"https://api.github.com/users/aussielunix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aussielunix/subscriptions","organizations_url":"https://api.github.com/users/aussielunix/orgs","repos_url":"https://api.github.com/users/aussielunix/repos","events_url":"https://api.github.com/users/aussielunix/events{/privacy}","received_events_url":"https://api.github.com/users/aussielunix/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-06-12T13:20:27Z","updated_at":"2015-05-06T15:00:22Z","closed_at":"2014-06-12T22:56:56Z","body":"I want to hook direnv and gvm together.\r\n\r\nI have an `.envrc` \r\n\r\n```\r\ngvm use $1\r\nlayout go\r\n```\r\n\r\nWhenever I cd into that dir I get:\r\n\r\n```\r\ndirenv: loading ~/.direnvrc\r\ndirenv: loading .envrc\r\nERROR: Unrecognized command line argument: 'use'\r\ndirenv: export +GOPATH ~PATH\r\n```\r\n\r\nFrom what I can tell this is a clash of the method [use](https://github.com/zimbatm/direnv/blob/master/stdlib.sh#L322-L327) but I could be wrong.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/zimbatm/direnv/issues/comments/99503390","html_url":"https://github.com/zimbatm/direnv/issues/128#issuecomment-99503390","issue_url":"https://api.github.com/repos/zimbatm/direnv/issues/128","id":99503390,"user":{"login":"zimbatm","id":3248,"avatar_url":"https://avatars.githubusercontent.com/u/3248?v=3","gravatar_id":"","url":"https://api.github.com/users/zimbatm","html_url":"https://github.com/zimbatm","followers_url":"https://api.github.com/users/zimbatm/followers","following_url":"https://api.github.com/users/zimbatm/following{/other_user}","gists_url":"https://api.github.com/users/zimbatm/gists{/gist_id}","starred_url":"https://api.github.com/users/zimbatm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zimbatm/subscriptions","organizations_url":"https://api.github.com/users/zimbatm/orgs","repos_url":"https://api.github.com/users/zimbatm/repos","events_url":"https://api.github.com/users/zimbatm/events{/privacy}","received_events_url":"https://api.github.com/users/zimbatm/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T15:00:21Z","updated_at":"2015-05-06T15:00:21Z","body":"You can do something like this.\r\n\r\nCreate or add to your `~/.direnvrc`:\r\n```\r\nuse_go() {\r\n  # FIXME: gvm root might vary\r\n  source $HOME/.gvm/scripts/gvm\r\n  gvm use \"$@\"\r\n}\r\n```\r\n\r\nAnd then in any `.envrc` file:\r\n```\r\nuse go 1.4\r\n```\r\n\r\nI haven't tested that out. Can you add it to the wiki if it works for you ?"}}