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

puppet misses the racc dependency #9535

Open
bastelfreak opened this issue Dec 22, 2024 · 1 comment
Open

puppet misses the racc dependency #9535

bastelfreak opened this issue Dec 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@bastelfreak
Copy link
Contributor

Describe the Bug

puppet-strings relies on puppet. Running the strings:generate:reference rake task fails with:

LoadError: cannot load such file -- racc/parser.rb (LoadError)
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-8.10.0/lib/puppet/pops/parser/eparser.rb:7:in `<top (required)>'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-8.10.0/lib/puppet/pops.rb:86:in `require_relative'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-8.10.0/lib/puppet/pops.rb:86:in `<module:Parser>'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-8.10.0/lib/puppet/pops.rb:[85](https://github.com/voxpupuli/puppet-example/actions/runs/12453248817/job/34763447263#step:6:86):in `<module:Pops>'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-8.10.0/lib/puppet/pops.rb:14:in `<module:Puppet>'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-8.10.0/lib/puppet/pops.rb:3:in `<top (required)>'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-8.10.0/lib/puppet/parser/compiler.rb:10:in `require_relative'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-8.10.0/lib/puppet/parser/compiler.rb:10:in `<top (required)>'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-8.10.0/lib/puppet/parser.rb:8:in `require_relative'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-8.10.0/lib/puppet/parser.rb:8:in `<top (required)>'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-8.10.0/lib/puppet.rb:338:in `require_relative'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-8.10.0/lib/puppet.rb:338:in `<top (required)>'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-strings-4.1.3/lib/puppet-strings/yard/parsers/puppet/parser.rb:3:in `<top (required)>'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-strings-4.1.3/lib/puppet-strings/yard/parsers.rb:12:in `<module:Puppet>'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-strings-4.1.3/lib/puppet-strings/yard/parsers.rb:11:in `<module:Parsers>'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-strings-4.1.3/lib/puppet-strings/yard/parsers.rb:4:in `<top (required)>'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-strings-4.1.3/lib/puppet-strings/yard/handlers/json/task_handler.rb:4:in `<top (required)>'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-strings-4.1.3/lib/puppet-strings/yard/handlers.rb:17:in `<module:JSON>'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-strings-4.1.3/lib/puppet-strings/yard/handlers.rb:16:in `<module:Handlers>'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-strings-4.1.3/lib/puppet-strings/yard/handlers.rb:4:in `<top (required)>'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-strings-4.1.3/lib/puppet-strings/yard.rb:8:in `<module:Yard>'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-strings-4.1.3/lib/puppet-strings/yard.rb:6:in `<top (required)>'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-strings-4.1.3/lib/puppet-strings.rb:20:in `generate'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-strings-4.1.3/lib/puppet-strings/tasks/generate.rb:45:in `block (2 levels) in <top (required)>'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/puppet-strings-4.1.3/lib/puppet-strings/tasks/generate.rb:51:in `block (3 levels) in <top (required)>'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/voxpupuli-release-3.2.2/lib/voxpupuli/release/rake_tasks.rb:[106](https://github.com/voxpupuli/puppet-example/actions/runs/12453248817/job/34763447263#step:6:107):in `block (2 levels) in <top (required)>'
/home/runner/work/puppet-example/puppet-example/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'

Expected Behavior

puppet depends on racc, but that's not listed in the gemspec. It should be listed there

Steps to Reproduce

Environment

  • Version [e.g. 1.27.0]
  • Platform [e.g. Ubuntu 18.04]

Additional Context

Add any other context about the problem here.

@bastelfreak bastelfreak added the bug Something isn't working label Dec 22, 2024
bastelfreak added a commit to bastelfreak/voxpupuli-release that referenced this issue Dec 22, 2024
puppet depends on the `racc` gem, but it's not listed as an explicity
dependency. See puppetlabs/puppet#9535
bastelfreak added a commit to bastelfreak/voxpupuli-release that referenced this issue Dec 22, 2024
puppet depends on the `racc` gem, but it's not listed as an explicity
dependency. See puppetlabs/puppet#9535
This often worked in the past by accident because we always installed
rubocop. That depends on parser, which in turn pulls in racc.
@ekohl
Copy link
Contributor

ekohl commented Dec 22, 2024

This is a Ruby 3.3 issue because it was changed from a default gem to a bundled gem (see https://stdgems.org/new-in/3.3/). That means it could previously count on it while now it needs to specify it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants