Skip to content

Conversation

@reedham-aws
Copy link
Contributor

Issue #, if available:
#805
^ PR to pin the old version that works.

The issue is that a new version of RubyGems (4.0.0) deprecates the --without option that we were using to not include test and development dependencies in sam build. This caused any sam build running with that version or above to fail.

Description of changes

Changed the bundler to not use --without. Previously, --without implicitly updated the bundler config to have a field like

BUNDLE_WITHOUT: "development:test"

Now, we set the config directly. This matches with the approach from the documentation.

Description of how you validated changes

After running pip install -e . in a Python environment, I tried building a Ruby function using samdev build (samdev being built with the new aws-lambda-builders. I confirmed that the build succeeded and successfully ignored testing dependencies. I also confirmed that this was not the case in the same environment with sam build.

I also confirmed that the behavior between old versions of RubyGems was the same as with the new version of aws-lambda-builders.

Finally, I updated the unit tests to reflect the new change.

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@reedham-aws reedham-aws added this pull request to the merge queue Dec 10, 2025
Merged via the queue into aws:develop with commit efda1dd Dec 10, 2025
95 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants