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

having 'cookbook' in the parent directories causes a failure #137

Closed
jperry opened this issue Aug 14, 2014 · 5 comments
Closed

having 'cookbook' in the parent directories causes a failure #137

jperry opened this issue Aug 14, 2014 · 5 comments
Milestone

Comments

@jperry
Copy link
Contributor

jperry commented Aug 14, 2014

Hey @jonlives,

Seeing this failure when I have 'cookbook' in my parent directory path.

master [08:52:28] ~/workspace/bithub/cookbooks-org/chef > be knife spork promote qa base
Adding version constraint base = 4.0.1
Saving changes to qa.json
ERROR: Errno::ENOENT: No such file or directory @ rb_sysopen - /Users/jperry/workspace/bithub/environments-org/chef/environments/qa.json
@jonlives
Copy link
Owner

@jperry could you gist the output of running that with the -VV option please?

@jonlives
Copy link
Owner

@jperry ah I think I know what's going on - spork gsubs "cookbooks" with "environments" to look for environment files, it doesn't account for that occurring earlier in the path than the last position. Thanks for the report, I'll add this to the list to fix for the next release (hopefully next week)

@jonlives jonlives added this to the Version 1.4.0 milestone Aug 14, 2014
@jonlives
Copy link
Owner

@jperry as a temporary fix, you could set the "environment_path" config option, which takes precedence over that gsub. https://github.com/jonlives/knife-spork#environment-path

@jperry
Copy link
Contributor Author

jperry commented Aug 14, 2014

Thanks @jonlives . The environment_path fixed the issue.

@jperry
Copy link
Contributor Author

jperry commented Aug 21, 2014

Thanks!

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

2 participants