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

[scaffolding-ruby] bundler deprecated warnings #4198

Open
jritchie-nullable opened this issue Nov 2, 2021 · 0 comments
Open

[scaffolding-ruby] bundler deprecated warnings #4198

jritchie-nullable opened this issue Nov 2, 2021 · 0 comments

Comments

@jritchie-nullable
Copy link

jritchie-nullable commented Nov 2, 2021

Running build within hab studio results in several deprecation notices with the current bundler. The functionality of these flags I do not believe is being removed. Under Habitat the reasoning for the deprecation does not apply if I understand correctly.

Workarounds do exist:
BUNDLE_SILENCE_DEPRECATIONS is an environment variable that may be applied to silence the warnings - however this would hide future deprecations that need to be addressed.

BUNDLE_DEPLOYMENT=1
BUNDLE_PATH="..."
BUNDLE_SHEBANG="..."
BUNDLE_WITHOUT="..."

Might be options as an alternative to executing the 'bundle config set' route.

Current deprecated warning list

[DEPRECATED] The --deployment flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use bundle config set --local deployment 'true', and stop using this flag
[DEPRECATED] The --path flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use bundle config set --local path '/hab/pkgs/jritchie-null-test/minimal/0.1.0/20211102161242/app/vendor/bundle', and stop using this flag
[DEPRECATED] The --shebang flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use bundle config set --local shebang '/hab/pkgs/core/ruby/3.0.2/20211019144421/bin/ruby', and stop using this flag
[DEPRECATED] The --without flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use bundle config set --local without 'development:test', and stop using this flag

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

No branches or pull requests

1 participant