Skip to content

Bundler 4.0.0 removed deprecated --path argument #424

@chhtz

Description

@chhtz

On Ubuntu 24.04 (or probably anywhere with ruby>=3.0) one now gets an error like this during bootstrapping (or autoproj update in existing workspaces):

The `--path` flag has been removed because it relied on being remembered across bundler invocations, which bundler no longer does. Instead please use `bundle
config set bin '/WORKSPACE/.autoproj/bin'`, and stop using this flag
autoproj_bootstrap:506:in `run_bundler': FAILED: bundler binstubs, --all, --force, --path, /WORKSPACE/.autoproj/bin in /WORKSPACE/.autoproj (Autoproj::Ops::Install::BundlerFailed)
	from autoproj_bootstrap:480:in `install_autoproj'
	from autoproj_bootstrap:754:in `install'
	from autoproj_bootstrap:824:in `stage1'
	from autoproj_bootstrap:873:in `<main>'

The quickest workaround is probably to fix the bundler version to 2.7.2, e.g. during bootstrap:

ruby autoproj_bootstrap --bundler-version="2.7.2" git $REPOSITORY_URL

This could be set in autoproj as well, similar to this: #402

But longtime, it would be nice to follow the recommended API of bundler.

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