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

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

Merged
merged 1 commit into from
May 2, 2024

Commits on Apr 30, 2024

  1. Fix uninitialized constant Parser::AST::Processor::Mixin

    parser 3.3.1.0 introduced
    whitequark/parser#1000, which causes this
    failure:
    
    ```
    % bundle exec ruby -Itest test/unit/profiles/profile_test.rb
    inspec/lib/inspec/utils/profile_ast_helpers.rb:7:in `<class:CollectorBase>': uninitialized constant Parser::AST::Processor::Mixin (NameError)
    
            include Parser::AST::Processor::Mixin
                                          ^^^^^^^
    ```
    
    Fix this by inherting from `Parser::AST::Processor` instead.
    
    Closes inspec#7029
    
    Signed-off-by: Stan Hu <stanhu@gmail.com>
    stanhu committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    d2ff553 View commit details
    Browse the repository at this point in the history