Skip to content

Commit 44f0a21

Browse files
committed
Fix gemspec to exclude .gem files from file list
- Added exclusion for .gem files to prevent circular reference error - Fixes 'contains itself' validation error when building/installing gem
1 parent b1d94ac commit 44f0a21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

langchainrb_rails.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
2323
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
2424
spec.files = Dir.chdir(__dir__) do
2525
`git ls-files -z`.split("\x0").reject do |f|
26-
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
26+
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)}) || f.match?(/\.gem$/)
2727
end
2828
end
2929
spec.bindir = "exe"

0 commit comments

Comments
 (0)