ruby / ruby/rubygems

Feature request - Allow to set multiple config variables in one "bundle config" call

Open
#4,392 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bundler
Dominant language
Ruby
Stars
4k
Forks
1.9k
Avg merge
1d 2h
Merged PRs (30d)
81

Description

Describe the problem as clearly as you can

Here is my understanding:

  • Since Bundler 2.1+, --path, --without and --deployment options are deprecated in a given bundler install
  • This resulted in adaptation for deployment tooling (for instance https://github.com/capistrano/bundler/pull/122/files, but also other private stuff) with 3 bundle config --local calls
  • This increases deployment / CI-CD deployment time (sometimes by ~ 10 seconds if you are on a slow setup, or on JRuby)
  • I do understand that ENV variables could be used to work-around this (in Capistrano-bundler or similar tooling), but usually it is less explicit (defined a bit further away for instance)

Hence I wonder if bundler config could be made to allow configuring N variables in one go, to accelerate this & save resources, without resorting to ENV variables.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing bundle config command and how it accepts and persists configuration values. Review the deployment examples linked in the issue to understand the intended multi-variable invocation. Done means one bundle config call can set multiple variables while preserving the current configuration behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.