Giter Club home page Giter Club logo

Comments (8)

kisoku avatar kisoku commented on May 27, 2024

And yes I have local workarounds in place, but it would be nice if cookstyle worked out of the box with the ruby that ships with chefdk

from cookstyle.

tas50 avatar tas50 commented on May 27, 2024

@kisoku Which chef-dk release are you on?

from cookstyle.

kisoku avatar kisoku commented on May 27, 2024
miyamoto [14:45:13] fastly $ chef --version
Chef Development Kit Version: 1.1.16
chef-client version: 12.17.44
delivery version: master (83358fb62c0f711c70ad5a81030a6cae4017f103)
berks version: 5.2.0
kitchen version: 1.14.2

from cookstyle.

kisoku avatar kisoku commented on May 27, 2024

Here's my workaround. I shove this in a local .rubocop.yml

AllCops:
  TargetRubyVersion: 2.3

from cookstyle.

tas50 avatar tas50 commented on May 27, 2024

We might just need to require 2.3 in cookstyle and shove that into our config there.

from cookstyle.

lamont-granquist avatar lamont-granquist commented on May 27, 2024

community cookbooks probably still need to support ruby 2.0, certainly ruby 2.1 and barfing on the squiggly heredoc is probably a feature, not a bug.

from cookstyle.

lamont-granquist avatar lamont-granquist commented on May 27, 2024

to be more precise: chef-client 12.5 is still supported by community cookbooks and it shipped with ruby 2.0 so while 12.5 is supported by community cookbooks they MUST NOT use 2.3 features like squiggly heredoc.

we only moved to ruby 2.1 in 12.8, we finally moved to 2.3 in 12.14.x

once the community cookbooks no longer support chef-client versions < 12.14.x then the default parser can be bumped to 2.3

from cookstyle.

tas50 avatar tas50 commented on May 27, 2024

I've locked Cookstyle to Ruby 2.0 for 1.4.0 since we shipped 2.0 in the 12.X chef releases. Once we EOL Chef 12 we'll be able to bump to 2.4.0 which shipped with Chef 13. Until then we're going to have to keep supporting old Ruby :(

from cookstyle.

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.