-
Notifications
You must be signed in to change notification settings - Fork 313
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
berks upload fails with "Invalid element in array value of 'files'." #706
Comments
@Enalmada sent me the full stack trace, and I was able to parse out this bit:
I believe this is caused by #587. The |
I suspect the root cause is that Ridley is not properly handling chefignore |
Good catch on the .DS_Store file. Yes, after removing that file it works. Oh finder. I am closing this with the assumption that it is a dupe and #587 will fix. Hopefully this ticket will help anyone googling the error to find deleting that file as a workaround. |
Also throws the error for "Invalid element in array value of 'templates'". Just adding this for future searchers. |
Also leaving a note for future searchers. To clear out your chef repo and cookbooks of '.DS_Store' files run this command and it will delete all .DS_Store files recursively.
|
A similar error is returned when a cookbook when an erb file is incorrectly placed in the templates folder (ie: (for googlers...) Returned error was:
|
Had the same problem with invalid element in array of files. This fixed it: find . -name '*.DS_Store' -type f -delete Glad found this issue/page. |
I'm also getting this problem with Berkshelf 2.0.14 if I have .keep or .gitkeep files to make sure certain directories in my cookbook are added to version control if they are empty. |
This has been fixed on the master branch. A new version of Berkshelf will be released in the next week or so. |
Same problem on 3.1.1. Same resolution as @dmorrison. |
I was having this problem today until I removed the .berkshelf/cookbooks/ directory and let the entire cookbook resolution happen from scratch. |
@reset why reopen this? |
@sethvargo couldn't find proper documentation that this is actually fixed on master |
I'm having the same issue, neither previously mentioned resolution of removing .berkshelf/cookbooks or find . -name '*.DS_Store' -type f -delete is working for me. |
I was using 3.1.1 from chefdk. Tried 3.1.3 from gem install and same issue. |
Just had the same issue with 3.1.1 from chefdk. Only removing all cookbooks from ~/.berkshelf/cookbooks resolved it. |
find . -name '*.DS_Store' -type f -delete worked for me with chefdk. |
thanks for find . -name '*.DS_Store' -type f -delete |
Thanks all find . -name '*.DS_Store' -type f -delete worked for me and is there anyother way, i doubt we could have that ignored or something, i have it in my chefignore and.gitignore as well |
I've moved this issue to Ridley (since that's the actual uploader) |
|
Unfortunately this problem was not solved for me (berks version 3.2.3) and it also had nothing to do with any My error was caused by having files placed directly in the files/template-folder. I was able to solve the problem by moving the designated files into an additional subdirectory: Wrong
lead to: Right
|
happened to me too solution was
|
I just thought that I would share that this happened to me recently and I was able to resolve it by recursively removing all of the .keep files in the cookbook. e.g.
|
Thanks @florianb that was my problem not any |
On Mac, berks upload has been uploading fine. Made a small change to recipe text, added changeglog line, and incremented metadata version...now berks upload fails. Using berkshelf 2.0.5, did bundle update, ruby 1.9.3p429, knife upload works fine, strainer tests with recommended foodcritic rules all return success. Any thoughts on what that error might mean?
The text was updated successfully, but these errors were encountered: