{"action":"created","issue":{"url":"https://api.github.com/repos/xanzy/chef-guard/issues/81","labels_url":"https://api.github.com/repos/xanzy/chef-guard/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/xanzy/chef-guard/issues/81/comments","events_url":"https://api.github.com/repos/xanzy/chef-guard/issues/81/events","html_url":"https://github.com/xanzy/chef-guard/issues/81","id":57923306,"number":81,"title":"chef-guard not respecting chefignore","user":{"login":"miguelaferreira","id":4670993,"avatar_url":"https://avatars.githubusercontent.com/u/4670993?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelaferreira","html_url":"https://github.com/miguelaferreira","followers_url":"https://api.github.com/users/miguelaferreira/followers","following_url":"https://api.github.com/users/miguelaferreira/following{/other_user}","gists_url":"https://api.github.com/users/miguelaferreira/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelaferreira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelaferreira/subscriptions","organizations_url":"https://api.github.com/users/miguelaferreira/orgs","repos_url":"https://api.github.com/users/miguelaferreira/repos","events_url":"https://api.github.com/users/miguelaferreira/events{/privacy}","received_events_url":"https://api.github.com/users/miguelaferreira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-17T13:23:09Z","updated_at":"2015-02-17T13:32:28Z","closed_at":null,"body":"I have a cookbook with some test fixtures under directory `test`. I have added the line `*/test` to the file `chefignore` that is in my cookbook directory.\r\nWhen I do a `knife cookbook upload` command chef-guard reports a compare error, as follows:\r\n```bash\r\nERROR: Precondition Failed\r\nResponse: \r\n=== Cookbook Compare errors found ===\r\nThe source cookbook contains more files than your upload:\r\n - test/fixtures/data_bags/sql_server/credentials.json\r\n - test/fixtures/encrypted_data_bag_secret\r\n - test/fixtures/environments/test.json\r\n```\r\n\r\nIt seems that knife ignores these files accordingly, but chef-guard does not."},"comment":{"url":"https://api.github.com/repos/xanzy/chef-guard/issues/comments/74667706","html_url":"https://github.com/xanzy/chef-guard/issues/81#issuecomment-74667706","issue_url":"https://api.github.com/repos/xanzy/chef-guard/issues/81","id":74667706,"user":{"login":"svanharmelen","id":4171547,"avatar_url":"https://avatars.githubusercontent.com/u/4171547?v=3","gravatar_id":"","url":"https://api.github.com/users/svanharmelen","html_url":"https://github.com/svanharmelen","followers_url":"https://api.github.com/users/svanharmelen/followers","following_url":"https://api.github.com/users/svanharmelen/following{/other_user}","gists_url":"https://api.github.com/users/svanharmelen/gists{/gist_id}","starred_url":"https://api.github.com/users/svanharmelen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svanharmelen/subscriptions","organizations_url":"https://api.github.com/users/svanharmelen/orgs","repos_url":"https://api.github.com/users/svanharmelen/repos","events_url":"https://api.github.com/users/svanharmelen/events{/privacy}","received_events_url":"https://api.github.com/users/svanharmelen/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T13:32:28Z","updated_at":"2015-02-17T13:32:28Z","body":"@miguelaferreira the chefignore file uses a different syntax as the gitignore file. So you would need to add this instead:\r\n\r\n```\r\ntest/*\r\n```\r\n\r\nAnd of course make sure that is also committed into your repo as it will take the committed version over your local version."}}