Skip to content

Commit b2e7636

Browse files
committed
Use git ls-files instead of Dir.glob because Docker image is broken now
1 parent 83e0807 commit b2e7636

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/bundler/bundler.gemspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ Gem::Specification.new do |s|
3434
# It should match the RubyGems version shipped with `required_ruby_version` above
3535
s.required_rubygems_version = ">= 3.4.1"
3636

37-
s.files = Dir.glob("lib/bundler{.rb,/**/*}", File::FNM_DOTMATCH).reject {|f| File.directory?(f) }
37+
s.files = Dir.chdir(File.expand_path('..', __FILE__)) do
38+
`git ls-files -z lib`.split("\x0")
39+
end
3840

3941
# include the gemspec itself because warbler breaks w/o it
4042
s.files += %w[lib/bundler/bundler.gemspec]

0 commit comments

Comments
 (0)