{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef-dk/issues/880","repository_url":"https://api.github.com/repos/chef/chef-dk","labels_url":"https://api.github.com/repos/chef/chef-dk/issues/880/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef-dk/issues/880/comments","events_url":"https://api.github.com/repos/chef/chef-dk/issues/880/events","html_url":"https://github.com/chef/chef-dk/pull/880","id":158227289,"number":880,"title":"Removed call to write updated lockfile when pushing policy","user":{"login":"emachnic","id":169018,"avatar_url":"https://avatars.githubusercontent.com/u/169018?v=3","gravatar_id":"","url":"https://api.github.com/users/emachnic","html_url":"https://github.com/emachnic","followers_url":"https://api.github.com/users/emachnic/followers","following_url":"https://api.github.com/users/emachnic/following{/other_user}","gists_url":"https://api.github.com/users/emachnic/gists{/gist_id}","starred_url":"https://api.github.com/users/emachnic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emachnic/subscriptions","organizations_url":"https://api.github.com/users/emachnic/orgs","repos_url":"https://api.github.com/users/emachnic/repos","events_url":"https://api.github.com/users/emachnic/events{/privacy}","received_events_url":"https://api.github.com/users/emachnic/received_events","type":"User","site_admin":false},"labels":[{"id":114577459,"url":"https://api.github.com/repos/chef/chef-dk/labels/Signed%20CLA","name":"Signed CLA","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":31,"created_at":"2016-06-02T20:03:22Z","updated_at":"2016-11-03T16:04:36Z","closed_at":"2016-07-26T01:30:13Z","pull_request":{"url":"https://api.github.com/repos/chef/chef-dk/pulls/880","html_url":"https://github.com/chef/chef-dk/pull/880","diff_url":"https://github.com/chef/chef-dk/pull/880.diff","patch_url":"https://github.com/chef/chef-dk/pull/880.patch"},"body":"I wanted to try and fix #831 with this Pull Request. After the change, all RSpec tests passed. I also tested that this works by adding my fork as a dependency in the Gemfile of my cookbook. I was still able to run `chef install` and `chef update` successfully. I was also able to run `chef push` without it generating a new lock file so that multiple policy groups end up having the same policy revision.\n"},"comment":{"url":"https://api.github.com/repos/chef/chef-dk/issues/comments/258188268","html_url":"https://github.com/chef/chef-dk/pull/880#issuecomment-258188268","issue_url":"https://api.github.com/repos/chef/chef-dk/issues/880","id":258188268,"user":{"login":"emachnic","id":169018,"avatar_url":"https://avatars.githubusercontent.com/u/169018?v=3","gravatar_id":"","url":"https://api.github.com/users/emachnic","html_url":"https://github.com/emachnic","followers_url":"https://api.github.com/users/emachnic/followers","following_url":"https://api.github.com/users/emachnic/following{/other_user}","gists_url":"https://api.github.com/users/emachnic/gists{/gist_id}","starred_url":"https://api.github.com/users/emachnic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emachnic/subscriptions","organizations_url":"https://api.github.com/users/emachnic/orgs","repos_url":"https://api.github.com/users/emachnic/repos","events_url":"https://api.github.com/users/emachnic/events{/privacy}","received_events_url":"https://api.github.com/users/emachnic/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T16:04:36Z","updated_at":"2016-11-03T16:04:36Z","body":"@danielsdeleo I just decided to take a look at this again. It appears that the behavior is still there, at least when running Chefspec using Policyfiles. You can test this by making sure to have a clean working directory and that you're requiring `chefspec/policyfile` in the `spec_helper.rb` file. Then run `rspec` and this should regenerate the Policyfile.lock.json file. Note that I've made sure to add the Policyfile.rb and Policyfile.lock.json to chefignore."}}
{"actor":{"display_login":"emachnic"}}