troykinsella / concourse-ansible-playbook-resource

A Concourse CI resource for running Ansible playbooks
MIT License
40 stars 19 forks source link

Ruby version compatibility issues in `latest` tagged image #27

Closed waweber closed 1 year ago

waweber commented 1 year ago
/opt/resource/lib/commands/out.rb:82:in `configure_ansible!': undefined method `exists?' for File:Class (NoMethodError)

      if File.exists? ansible_cfg_path

             ^^^^^^^^

Did you mean?  exist?

    from /opt/resource/lib/commands/out.rb:195:in `run!'

    from /opt/resource/lib/commands/out.rb:208:in `<main>'

According to this StackOverflow answer it looks like Ruby 3.2.0 removes some deprecated aliases that need to be updated in this resource (or have a specific Ruby version pinned)

troykinsella commented 1 year ago

@waweber Thanks for the report, and thanks for your patience! Seems my rspec test strategy no longer works (i.e. doesn't run at all) with buildkit.