inspec / inspec-gcp

InSpec GCP (Google Cloud Platform) Resource Pack
https://www.inspec.io/
Other
148 stars 70 forks source link

Fix uninitialized constant Parser::AST::Processor::Mixin #623

Closed balasubramanian-s closed 5 months ago

balasubramanian-s commented 5 months ago

Description

parser 3.3.1.0 introduced https://github.com/whitequark/parser/pull/1000, which causes this failure:

% 
bundle exec inspec check /workdir --chef-license=accept-silent
    bundler: failed to load command: inspec (/usr/local/bundle/bin/inspec)
    /usr/local/bundle/gems/inspec-core-5.22.40/lib/inspec/utils/profile_ast_helpers.rb:7:in `<class:CollectorBase>': 
    uninitialized constant Parser::AST::Processor::Mixin (NameError)

Fix this by requiring the right version of the parser gem.

Related Issue

Closes #7029

Types of changes

Checklist:

balasubramanian-s commented 5 months ago

This change will be reverted when inspec 5 changes are released