Giter Club home page Giter Club logo

Comments (5)

bmjen avatar bmjen commented on June 27, 2024

No this is not currently possible with the current Gemfile.erb. Can you tell us more about your usecase that would require this functionality?

from pdk-templates.

ghoneycutt avatar ghoneycutt commented on June 27, 2024

https://travis-ci.org/ghoneycutt/puppet-module-rpcbind/jobs/508163523

rake tasks fail because the rake gem is not required.

SPEC_OPTS="--format documentation" bundle exec rake validate lint spec strings:generate reference
Traceback (most recent call last):
	4: from /home/travis/build/ghoneycutt/puppet-module-rpcbind/vendor/bundle/ruby/2.5.0/bin/ruby_executable_hooks:24:in `<main>'
	3: from /home/travis/build/ghoneycutt/puppet-module-rpcbind/vendor/bundle/ruby/2.5.0/bin/ruby_executable_hooks:24:in `eval'
	2: from /home/travis/build/ghoneycutt/puppet-module-rpcbind/vendor/bundle/ruby/2.5.0/bin/rake:23:in `<main>'
	1: from /home/travis/.rvm/gems/ruby-2.5.3/gems/bundler-2.0.1/lib/bundler/rubygems_integration.rb:482:in `block in replace_bin_path'
/home/travis/.rvm/gems/ruby-2.5.3/gems/bundler-2.0.1/lib/bundler/rubygems_integration.rb:462:in `block in replace_bin_path': can't find executable rake for gem rake. rake is not currently included in the bundle, perhaps you meant to add it to your Gemfile? (Gem::Exception)
The command "SPEC_OPTS="--format documentation" bundle exec rake validate lint spec strings:generate reference" exited with 1.

from pdk-templates.

ghoneycutt avatar ghoneycutt commented on June 27, 2024

It makes less sense since the parameter is required which then enforces that the gem is included with require: false.

from pdk-templates.

DavidS avatar DavidS commented on June 27, 2024

If you really want to change how require is handled in the Gemfile, adding another flag to

options << "require: false" if gem['from_env'].nil?
should make that a small change.

That said, the require flag in the Gemfile does only influence the behaviour of Bundler.require() (see https://bundler.io/gemfile.html and https://bundler.io/guides/groups.html) and has no influence on the error message you posted in #211 (comment)

from pdk-templates.

jordanbreen28 avatar jordanbreen28 commented on June 27, 2024

Closing this aging issue, please re-open if necessary.

from pdk-templates.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.