Whole file

awslabs/aws-lambda-builders

The author described this change as fix: remove deprecated --without option from ruby bundler (#808). It counts as a record because the checks below fail on the code as it stood at 719e7e936 and pass on efda1dd6a, with nothing else changed between the two runs.

Fix saved2025-12-10
Sharing licenceApache-2.0 · LICENSE
Change size+7 5

What the code was meant to do, written into the code itself as a save note

fix: remove deprecated --without option from ruby bundler (#808)

The change

2828 def execute(self):
2929 try:
3030 LOG.debug("Running bundle install in %s", self.source_dir)
31- self.subprocess_bundler.run(["install", "--without", "development", "test"], cwd=self.source_dir)
31+ self.subprocess_bundler.run(
32+ ["config", "set", "--local", "without", "development:test"], cwd=self.source_dir
33+ )
34+ self.subprocess_bundler.run(["install"], cwd=self.source_dir)
3235 except BundlerExecutionError as ex:
3336 raise ActionFailedError(str(ex))
3437
4952
5053 def execute(self):
5154 try:
52- LOG.debug("Running bundle install --deployment in %s", self.source_dir)
53- self.subprocess_bundler.run(
54- ["install", "--deployment", "--without", "development", "test"], cwd=self.source_dir
55- )
55+ LOG.debug("Running bundle install with deployment enabled in %s", self.source_dir)
56+ self.subprocess_bundler.run(["config", "set", "--local", "deployment", "true"], cwd=self.source_dir)
57+ self.subprocess_bundler.run(["install"], cwd=self.source_dir)
5658 except BundlerExecutionError as ex:
5759 raise ActionFailedError(str(ex))
5860

The check that tells the two apart

failpass·tests/unit/workflows/ruby_bundler/test_actions.py::TestRubyBundlerInstallAction::test_runs_bundle_install
failpass·tests/unit/workflows/ruby_bundler/test_actions.py::TestRubyBundlerVendorAction::test_runs_bundle_install_deployment

Check file tests/unit/workflows/ruby_bundler/test_actions.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before it719e7e936853abdff4cd946a19d9a371bb8315ef
Broken version dated2025-12-08
Moduleaws_lambda_builders.workflows.ruby_bundler.actions
Units changedRubyBundlerInstallAction, RubyBundlerVendorAction
Fingerprint47f9c53c06315ed5
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.

Other bugs found in awslabs/aws-lambda-builders