Open jamesc opened 6 years ago
Looking at this one and I feel like the code is still probably doing the right thing by blowing up. I think we can perhaps look at the Policyfile.rb we generate and see if we can automatically take care of the below error suggestion
You can set a preferred source to resolve this issue with code like:
default_source :chef_repo, "/mnt/c/src/github/jamesc/demo" do |s|
s.preferred_for "habitat"
end
Triaging all existing issues. I think the right answer for this issue now is to 'unroll' that underlying error. The message in that error gives the user actions they can take, so we should display that to them on the command line rather than forcing them to hunt in a log file for it.
have a directory with 2 cookbooks, 1 in supermarket, the other not but with a dependency on first e.g.
Berksfile in hab_national_parks points to
../habitat
.now I do a
chef-run hab_national_parks
.Expected: It should use the version in the current directory
Actual:
Stack trace says: