Code Monkey home page Code Monkey logo

Comments (7)

logicminds avatar logicminds commented on July 29, 2024

0.50 requires ruby >= 2.3 which breaks support

from puppet-module-gems.

benjarrell avatar benjarrell commented on July 29, 2024

Are there still supported versions with ruby < 2.3? It looks to me like there is not, based on https://puppet.com/docs/pe/latest/component_versions_in_recent_pe_releases.html

from puppet-module-gems.

freibuis avatar freibuis commented on July 29, 2024

current puppet uses ruby version 2.5.7
rubocop will not work with this version without disabling ruby version flags.

puppet --version
6.14.0
/opt/puppetlabs/puppet/bin/ruby -v
ruby 2.5.7p206 (2019-10-01 revision 67816) [x86_64-linux]
bundle exec rubocop --version
0.49.1

running rubocop the pdk way (gitlab ci rubocop)

bundle exec rake rubocop
Known versions: 1.9, 2.0, 2.1, 2.2, 2.3, 2.4

can we get it upgraded now?

from puppet-module-gems.

DavidS avatar DavidS commented on July 29, 2024

Updating rubocop will require a coordinated upgrade path to update the profiles defined in pdk-templates in all modules with minimal disturbance.

from puppet-module-gems.

shepting avatar shepting commented on July 29, 2024

I came to create this very same issue but saw that it was already open.

I had a what I thought was a very safe assumption that gem 'puppet-module-posix-dev-r2.6' would be able to use a modern version of Rubocop:

Screen Shot 2020-07-09 at 11 04 58 AM

from puppet-module-gems.

logicminds avatar logicminds commented on July 29, 2024

I think the only way to do this because rubocop has many changes for each version is to keep a separate template based on ruby version.

So the puppet-module-gems version would be able to pick the correct rubycop.yml template per ruby. Additionally, we can use the mry tool to easily upgrade rubocop changes.

from puppet-module-gems.

DavidS avatar DavidS commented on July 29, 2024

This has been addressed in #156 and will be released later today as 1.0.0, with an accompanying change to pdk-templates

from puppet-module-gems.

Related Issues (12)

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.