Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delivery local mode does not work as expected in mono repos #47

Open
tas50 opened this issue Mar 8, 2018 · 0 comments
Open

Delivery local mode does not work as expected in mono repos #47

tas50 opened this issue Mar 8, 2018 · 0 comments

Comments

@tas50
Copy link
Contributor

tas50 commented Mar 8, 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

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.

joe4dev added a commit to sealuzh/cwb-chef-repo that referenced this issue Aug 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant