Skip to content

Commit e42f816

Browse files
packaging: allow local js gem installs in nightly npm builds
Co-authored-by: Shelley <shelley@exe.dev>
1 parent 4a11dba commit e42f816

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rakelib/packaging.rake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ def build_ruby(pkg, base_dir, pkg_dir, binaryen, clean: false)
9494
Dir.chdir(cwd) do
9595
# uninstall js gem to re-install just-built js gem
9696
sh "gem", "uninstall", "js", "-v", js_gem_version, "--force"
97-
# install gems including js gem
98-
sh "bundle", "install"
97+
# install gems including js gem. Bundler may compare checksums with
98+
# rubygems.org for the same version and reject our just-built local gem.
99+
# Disable checksum validation only for this install command.
100+
sh({ "BUNDLE_DISABLE_CHECKSUM_VALIDATION" => "true" }, "bundle", "install")
99101

100102
sh env,
101103
"bundle", "exec",

0 commit comments

Comments
 (0)