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

Require bundler when loading polariscope #6

Merged
merged 1 commit into from
Oct 26, 2024
Merged

Conversation

lovro-bikic
Copy link
Member

When used standalone, bundler must be required, otherwise an error is raised:

polariscope/lib/polariscope/scanner/dependency_context.rb:64:in `block (2 levels) in bundle_definition': uninitialized constant Bundler::Definition (NameError)
        from .rbenv/versions/3.0.7/lib/ruby/3.0.0/tempfile.rb:358:in `create'
        from polariscope/lib/polariscope/scanner/dependency_context.rb:57:in `block in bundle_definition'
        from .rbenv/versions/3.0.7/lib/ruby/3.0.0/tempfile.rb:358:in `create'
        from polariscope/lib/polariscope/scanner/dependency_context.rb:56:in `bundle_definition'
        from polariscope/lib/polariscope/scanner/dependency_context.rb:47:in `ruby_scanner'
        from polariscope/lib/polariscope/scanner/dependency_context.rb:76:in `dependencies_with_ruby'
        from polariscope/lib/polariscope/scanner/dependency_context.rb:25:in `dependencies'
        from polariscope/lib/polariscope/scanner/dependency_context.rb:21:in `no_dependencies?'
        from polariscope/lib/polariscope/scanner/gemfile_health_score.rb:20:in `health_score'
        from polariscope/lib/polariscope.rb:17:in `scan'

@lovro-bikic lovro-bikic merged commit 388a085 into master Oct 26, 2024
5 checks passed
@lovro-bikic lovro-bikic deleted the fix/require-bundler branch October 26, 2024 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant