dependabot-azure-devops
dependabot-azure-devops copied to clipboard
undefined method `directory' for nil:NilClass (NoMethodError) since version 1.26.627
Describe the bug Since version 1.26.627 I get this error when dependabot executes in my AZDO pipeline:
bin/update_script.rb:747:in `block (2 levels) in <main>': undefined method `directory' for nil:NilClass (NoMethodError)
next if updated_files.first.directory != "/" && !title.end_with?(" in #{updated_files.first.directory}")
^^^^^^^^^^
from bin/update_script.rb:724:in `each'
from bin/update_script.rb:724:in `block in <main>'
from bin/update_script.rb:540:in `each'
from bin/update_script.rb:540:in `<main>'
##[error]The process '/bin/docker' failed with exit code 1
The error get away if I downgrade to version 1.24.596 using - task: [email protected]
To Reproduce I simply run my pipeline as usual, it contains only one step:
steps:
- task: dependabot@1
displayName: Stargate Dependabot
inputs:
azureDevOpsAccessToken: $(PAT)
gitHubConnection: 'github.com_myconnection'
dependabot.yml
contains this:
version: 2
updates:
- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "docker"
directory: "/Stargate"
schedule:
interval: "daily"
Expected behavior I expect dependabot to continue working as before. As a workaround I've downgraded to version 1.24.596
Extension (please complete the following information):
- Host: Azure DevOps Services
- Version Sprint 234
Server (please complete the following information):
- Region France
- Version [e.g. 1.2.54]
Still the case with 1.27.x
?
There is a different error with 1.27.678 :
STDERR:
Package [Dapper] Does not exist as a dependency in [/home/dependabot/dependabot-updater/tmp/MyCompany/Stargate/_git/Stargate/Stargate/Stargate.csproj].
Update complete.
Updating project [/home/dependabot/dependabot-updater/tmp/MyCompany/Stargate/_git/Stargate/Stargate.UnitTests/Stargate.UnitTests.csproj]
Running for SDK-style project
Package [Dapper] Does not exist as a dependency in [/home/dependabot/dependabot-updater/tmp/MyCompany/Stargate/_git/Stargate/Stargate.UnitTests/Stargate.UnitTests.csproj].
Update complete.
Submitting Dapper pull request for creation.
/home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11284/lib/types/_types.rb:222:in `must': Passed `nil` into T.must (TypeError)
from /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/dependabot-common-0.246.0/lib/dependabot/pull_request_creator/branch_namer/solo_strategy.rb:49:in `prefixes'
from /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11284/lib/types/private/methods/call_validation.rb:270:in `bind_call'
from /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11284/lib/types/private/methods/call_validation.rb:270:in `validate_call'
from /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11284/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added'
from /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/dependabot-common-0.246.0/lib/dependabot/pull_request_creator/branch_namer/solo_strategy.rb:39:in `new_branch_name'
from /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11284/lib/types/private/methods/call_validation.rb:270:in `bind_call'
from /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11284/lib/types/private/methods/call_validation.rb:270:in `validate_call'
from /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11284/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added'
from /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/dependabot-common-0.246.0/lib/dependabot/pull_request_creator/branch_namer.rb:68:in `new_branch_name'
from /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11284/lib/types/private/methods/call_validation.rb:270:in `bind_call'
from /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11284/lib/types/private/methods/call_validation.rb:270:in `validate_call'
from /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11284/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added'
from /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/dependabot-common-0.246.0/lib/dependabot/pull_request_creator.rb:311:in `azure_creator'
from /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11284/lib/types/private/methods/call_validation.rb:270:in `bind_call'
from /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11284/lib/types/private/methods/call_validation.rb:270:in `validate_call'
from /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11284/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added'
from /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/dependabot-common-0.246.0/lib/dependabot/pull_request_creator.rb:241:in `create'
from /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11284/lib/types/private/methods/call_validation.rb:270:in `bind_call'
from /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11284/lib/types/private/methods/call_validation.rb:270:in `validate_call'
from /home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/sorbet-runtime-0.5.11284/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added'
from bin/update_script.rb:829:in `block in <main>'
from bin/update_script.rb:545:in `each'
from bin/update_script.rb:545:in `<main>'
This was pointing to an error in nuget changes made in the core repository that has since been fixed. These issues affected the GitHub-hosted version too. Closing this as they resolved it.