Skip to content

Commit 1499d44

Browse files
authored
Skips files in vendor
When installing gems using bundler on a CI system the gems end up in the vendor/bundle folder pr default and these files are not supposed to be included in the package, so they should be skipped. Also locally if installing gems in vendor/ I get a "Too many open files" error as each AppFile is opened upon instantiation. Some systems will not the path be changed: ruby/setup-ruby#136
1 parent 80defed commit 1499d44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/zendesk_apps_support/package.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def files
9090
Dir[root.join('**/**')].each do |f|
9191
next unless File.file?(f)
9292
relative_file_name = f.sub(%r{#{root}/?}, '')
93-
next if relative_file_name =~ %r{^tmp/}
93+
next if relative_file_name =~ %r{^(tmp|vendor)/}
9494
files << AppFile.new(self, relative_file_name)
9595
end
9696
files

0 commit comments

Comments
 (0)