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

Exclude target path from recursive copy #49

Open
stefanbethke opened this issue Jul 19, 2017 · 0 comments
Open

Exclude target path from recursive copy #49

stefanbethke opened this issue Jul 19, 2017 · 0 comments

Comments

@stefanbethke
Copy link

I have a module that includes a complete control repo in example/, including a Puppetfile. This Puppetfile contains a reference to the module itself:

mod 'my_module',
  path: "../"
In kitchen, this works fine, but if I run librarian-puppet, I get this error message:
$ librarian-puppet  install
/Users/user/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/fileutils.rb:1362:in `copy': cannot copy directory /Users/user/working/my_module to itself /Users/user/working/my_module/examples/modules/my_module (ArgumentError)
	from /Users/user/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/fileutils.rb:471:in `block in copy_entry'
...

Since librarian-puppet will create it's modules directory under my_module/example/modules, copying the whole of my_module there can't possibly work. However, it's not really necessary to copy the example/modules dir as part of the module.

It would be cool if the target modules dir were excluded from the recursive copy.

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