tinglesoftware / dependabot-azure-devops

Tools for updating dependencies in Azure DevOps repositories using https://dependabot.com
MIT License
191 stars 63 forks source link

Fix missing module name when referencing RequirementsUpdateStrategy #1187

Closed rhyskoedijk closed 3 months ago

rhyskoedijk commented 3 months ago

Fixes #1046.

References to RequirementsUpdateStrategy were missing the Dependabot module name and causing "uninitialized constant" errors when DEPENDABOT_VERSIONING_STRATEGY was set.

Error

warning: parser/current is loading parser/ruby33, which recognizes 3.3.3-compliant syntax, but you are running 3.3.1.
Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
GitHub access token has been provided.
bin/update_script.rb:183:in `<main>': uninitialized constant RequirementsUpdateStrategy (NameError)

    "lockfile-only" => RequirementsUpdateStrategy::LockfileOnly,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^
mburumaxwell commented 3 months ago

Thanks. I wonder how I missed this.