Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control over bundle install #201

Closed
noraj opened this issue Jul 12, 2021 · 3 comments
Closed

Control over bundle install #201

noraj opened this issue Jul 12, 2021 · 3 comments

Comments

@noraj
Copy link

noraj commented Jul 12, 2021

In a gemspec file it's common to have add_runtime_dependency and add_development_dependency to create a runtime and development group in Gemfile. Following this answer, one that wan to only install runtime dependencies could do one of the following:

# Deprecated
bundle install --without development
# More future proof
bundle config set --local without 'development'
bundle install

Maybe the other way around work too

# Deprecated
bundle install --with runtime
# More future proof
bundle config set --local with 'runtime'
bundle install

The issue is that this template seems to do a classic bundle install and doesn't provide any way to configure it.

Also #38 wouldn't have been an issue if we would have been able to run:

# Deprecated
bundle install --deployment
# More future proof
bundle config set --local deployment true
bundle install
@noraj
Copy link
Author

noraj commented Jul 12, 2021

I see at https://github.com/actions/starter-workflows/blob/master/ci/ruby.yml and https://docs.github.com/en/actions/guides/building-and-testing-ruby that the use a bundle install step after ruby/setup-ruby, does this mean it will overwrite the default made by ruby/setup-ruby?

Update: I tried it and it doesn't override the one made by ruby/setup-ruby

noraj added a commit to noraj/haiti that referenced this issue Jul 12, 2021
try a workaround for ruby/setup-ruby#201
@eregon
Copy link
Member

eregon commented Jul 13, 2021

https://github.com/actions/starter-workflows/blob/master/ci/ruby.yml

That's an old master branch.

Here is the current state: https://github.com/actions/starter-workflows/blob/main/ci/ruby.yml

I believe https://github.com/ruby/setup-ruby#bundle-config already answers your questions.

@eregon eregon closed this as completed Jul 13, 2021
@noraj
Copy link
Author

noraj commented Jul 13, 2021

I believe https://github.com/ruby/setup-ruby#bundle-config already answers your questions.

Thanks, I'll give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants