Skip to content

Bundler "--without" flag is deprecated, and breaks builds (SAM CLI) #814

@emcay

Description

@emcay

Location:

self.subprocess_bundler.run(["install", "--without", "development", "test"], cwd=self.source_dir)

["install", "--deployment", "--without", "development", "test"], cwd=self.source_dir

Bundler docs:
https://bundler.io/man/bundle-install.1.html

Bundler doc sample:

Options
The --clean, --deployment, --frozen, --no-prune, --path, --shebang, --system, --without and --with options are deprecated because they only make sense if they are applied to every subsequent bundle install run automatically and that requires bundler to silently remember them. Since bundler will no longer remember CLI flags in future versions, bundle config (see [bundle-config(1)](https://bundler.io/man/bundle-config.1.html)) should be used to apply them permanently.

Example behavior (SAM CLI):

Build Failed
Error: RubyBundlerBuilder:RubyBundle - Bundler Failed: The `--without` flag has been removed because it relied on being remembered
across bundler invocations, which bundler no longer does. Instead please use
`bundle config set without 'development test'`, and stop using this flag

Cannot be bypassed when using "bundle config" seperately/before. Fails anyways because its hardcoded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions