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.
Projectawslabs/aws-lambda-builders
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
| 28 | 28 | def execute(self): | |
| 29 | 29 | try: | |
| 30 | 30 | 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) | |
| 32 | 35 | except BundlerExecutionError as ex: | |
| 33 | 36 | raise ActionFailedError(str(ex)) | |
| 34 | 37 | ||
| ⋯ | |||
| 49 | 52 | ||
| 50 | 53 | def execute(self): | |
| 51 | 54 | 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) | |
| 56 | 58 | except BundlerExecutionError as ex: | |
| 57 | 59 | raise ActionFailedError(str(ex)) | |
| 58 | 60 | ||
The check that tells the two apart
fail→pass·tests/unit/workflows/ruby_bundler/test_actions.py::TestRubyBundlerInstallAction::test_runs_bundle_install
fail→pass·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.