Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Cookbook vendoring causing Errno::ENAMETOOLONG #88

Open
athompson-r7 opened this issue Jul 27, 2016 · 0 comments · May be fixed by #90
Open

Cookbook vendoring causing Errno::ENAMETOOLONG #88

athompson-r7 opened this issue Jul 27, 2016 · 0 comments · May be fixed by #90

Comments

@athompson-r7
Copy link
Contributor

athompson-r7 commented Jul 27, 2016

We are vendoring cookbooks with the .builderator directory, this includes .builderator/cookbooks/rapid7-logstash-server/.builderator/cookbooks which is a complete copy of the vendored cookbook set.

This shows the nesting:

$ find .builderator -name rapid7-logstash-server                                                                                                                                 
.builderator/cookbooks/rapid7-logstash-server
.builderator/cookbooks/rapid7-logstash-server/.builderator/cookbooks/rapid7-logstash-server
.builderator/cookbooks/rapid7-logstash-server/.builderator/cookbooks/rapid7-logstash-server/.builderator/cookbooks/rapid7-logstash-server
.builderator/cookbooks/rapid7-logstash-server/.builderator/cookbooks/rapid7-logstash-server/.builderator/cookbooks/rapid7-logstash-server/.builderator/cookbooks/rapid7-logstash-server

$ find .builderator/cookbooks/ | wc -l                                                                                                                                                
   15110

And finally the error:

/Users/athompson/.rbenv/versions/2.1.5/lib/ruby/2.1.0/fileutils.rb:1402:in `initialize':
  File name too long @ rb_sysopen -
    /var/folders/d_/0rjw7crd6kv_fzvcls80jnrsn8327h/T/vendor20160727-44354-1wufxx4/rapid7-logstash-server/.builderator/cookbooks/rapid7-logstash-server/.builderator/cookbooks/rapid7-logstash-server/.builderator/cookbooks/rapid7-logstash-server/.builderator/cookbooks/rapid7-logstash/.builderator/cookbooks/rapid7-logstash/.builderator/cookbooks/rapid7-logstash/.builderator/cookbooks/rapid7-logstash/.builderator/cookbooks/rapid7-logstash/.builderator/cookbooks/rapid7-logstash/.builderator/cookbooks/rapid7-logstash/.builderator/cookbooks/rapid7-logstash/.builderator/cookbooks/rapid7-logstash/.builderator/cookbooks/rapid7-logstash/.builderator/cookbooks/rapid7-logstash/.builderator/cookbooks/rapid7-logstash/.builderator/cookbooks/rapid7-logstash/.builderator/cookbooks/rapid7-logstash/.builderator/cookbooks/rapid7-logstash/.builderator/cookbooks/rapid7-logstash/.builderator/cookbooks/rapid7-logstash/.builderator/cookbooks/rapid7-logstash/.builderator/cookbooks/build-essential/libraries/xcode_command_line_tools.rb
  (Errno::ENAMETOOLONG)
athompson-r7 added a commit that referenced this issue Aug 3, 2016
The aim of this change is to try to detect the presence of the ignore
files/directores in the `chefignore` file and try to add them if they
are missing.

In addition to adding the ignore files to the `chefignore` file we are
displaying a warning to the user suggesting they update their
`chefignore` file in the source repo so we don't have to do this.

Finally, we copy the `chefignore` file to the `.builderator` so that the
`berks` binary can find and use it.

The content we are adding looks like this:

```
.builderator
```

We are no longer nesting vendored cookbooks, so this fixes #88.

```
$ find .builderator -name rapid7-logstash-server

$ find .builderator/cookbooks | wc -l
     813
```
@athompson-r7 athompson-r7 linked a pull request Aug 3, 2016 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant