{"action":"opened","issue":{"url":"https://api.github.com/repos/inspec/inspec/issues/3571","repository_url":"https://api.github.com/repos/inspec/inspec","labels_url":"https://api.github.com/repos/inspec/inspec/issues/3571/labels{/name}","comments_url":"https://api.github.com/repos/inspec/inspec/issues/3571/comments","events_url":"https://api.github.com/repos/inspec/inspec/issues/3571/events","html_url":"https://github.com/inspec/inspec/issues/3571","id":376793138,"node_id":"MDU6SXNzdWUzNzY3OTMxMzg=","number":3571,"title":"InSpec doesn’t find relative or absolute path dependencies during profile ’check’","user":{"login":"skpaterson","id":18705468,"node_id":"MDQ6VXNlcjE4NzA1NDY4","avatar_url":"https://avatars0.githubusercontent.com/u/18705468?v=4","gravatar_id":"","url":"https://api.github.com/users/skpaterson","html_url":"https://github.com/skpaterson","followers_url":"https://api.github.com/users/skpaterson/followers","following_url":"https://api.github.com/users/skpaterson/following{/other_user}","gists_url":"https://api.github.com/users/skpaterson/gists{/gist_id}","starred_url":"https://api.github.com/users/skpaterson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skpaterson/subscriptions","organizations_url":"https://api.github.com/users/skpaterson/orgs","repos_url":"https://api.github.com/users/skpaterson/repos","events_url":"https://api.github.com/users/skpaterson/events{/privacy}","received_events_url":"https://api.github.com/users/skpaterson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-02T12:37:27Z","updated_at":"2018-11-02T12:37:27Z","closed_at":null,"author_association":"MEMBER","body":"### 🎛 Description\r\n\r\n🐛 bug report \r\n\r\nRunning an `inspec check` command on a profile having a `path` dependency always results in an error.\r\n\r\n### 🌍 InSpec and Platform Version\r\n\r\n```\r\n$ inspec --version\r\n3.0.25\r\n```\r\n\r\n### 🤔 Replication Case\r\n\r\nWhen I have an `inspec.yml` profile with path dependency as such:\r\n\r\n```\r\ndepends:\r\n  - name: inspec-gcp\r\n    path: ../../../\r\n```\r\n\r\nRunning an `inspec check` command results in the following error:\r\n\r\n```\r\n$ inspec check path/to/profile\r\n# or equally\r\n$ cd path/to/profile && inspec check .\r\n\r\n  ✖  ./inspec.yml:0:0: Your profile needs to be vendored with `inspec vendor`.\r\n…\r\n```\r\n\r\nI would expect relative paths to be formulated starting from the directory of the profile but here it seems likely InSpec is using another path.  Unsuccessfully I’d tried a few relative paths e.g. `../  or ../../ or . `\r\n\r\nWhen updating to an absolute path, the result is the same e.g. \r\n\r\n```\r\ndepends:\r\n  - name: inspec-gcp\r\n    path: /full/path/to/profile\r\n```\r\n\r\nThen running the check command:\r\n\r\n```\r\n$ inspec check path/to/profile\r\n# or equally\r\n$ cd path/to/profile && inspec check .\r\n\r\n  ✖  ./inspec.yml:0:0: Your profile needs to be vendored with `inspec vendor`.\r\n…\r\n```\r\n"}}
{"actor":{"display_login":"skpaterson"}}