You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like delivery local mode is really build around the concept of a single cookbook repository and there's some error messaging that doesn't entirely explain that.
Given a repo structure like this:
/Users/tsmith/repo/cookbooks/my_cookbook
I cannot run delivery local mode in the my_cookbook directory as expected. Even though chef generate cookbook created a .delivery directory with the project.toml delivery says there is no .delivery/project.toml file. That's because it looks for the .delivery directory where the .git directory is. It traverses up the tree until it finds the .git directory in the chef-repo itself and then of course it can't find the .delivery directory.
Problem 1: It should just use the .delivery directory we generate
Problem 2: The error message it provides is incorrect
Could not find the configuration file.
The .delivery/project.toml file was not found.
You can generate this file using the command:
chef generate build-cookbook [NAME]
The error should give the full path to the toml it can't find.
The text was updated successfully, but these errors were encountered:
joe4dev
added a commit
to sealuzh/cwb-chef-repo
that referenced
this issue
Aug 18, 2018
It looks like delivery local mode is really build around the concept of a single cookbook repository and there's some error messaging that doesn't entirely explain that.
Given a repo structure like this:
/Users/tsmith/repo/cookbooks/my_cookbook
I cannot run delivery local mode in the my_cookbook directory as expected. Even though chef generate cookbook created a .delivery directory with the project.toml delivery says there is no .delivery/project.toml file. That's because it looks for the .delivery directory where the .git directory is. It traverses up the tree until it finds the .git directory in the chef-repo itself and then of course it can't find the .delivery directory.
Problem 1: It should just use the .delivery directory we generate
Problem 2: The error message it provides is incorrect
The error should give the full path to the toml it can't find.
The text was updated successfully, but these errors were encountered: