Skip to content

Commit adac5a5

Browse files
packaging: disable checksum validation for all npm package gem installs
1 parent 6b28b1a commit adac5a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rakelib/packaging.rake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ def build_ruby(pkg, base_dir, pkg_dir, binaryen, clean: false)
6262
# Share ./build and ./rubies in the same workspace
6363
"RUBY_WASM_ROOT" => base_dir
6464
}
65+
# We vendor a freshly built js gem in package workspaces. Bundler checksum
66+
# validation against rubygems.org can fail for the same version.
67+
env["BUNDLE_DISABLE_CHECKSUM_VALIDATION"] = "true" if pkg[:gemfile]
6568
cwd = base_dir
6669
if gemfile_path = pkg[:gemfile]
6770
cwd = File.dirname(gemfile_path)

0 commit comments

Comments
 (0)