dependabot-script
dependabot-script copied to clipboard
NpmAndYarn::Updater.updated_dependency_files throws error
Currently trying the Azure DevOps setup and cannot get the generic-script to work. Seems to me that the error is thrown from updater.updated_dependency_files
. Every step until this is going fine, I just lack the PR step :)
Gemfile:
ruby "2.6.5"
source "https://rubygems.org"
gem "irb"
gem "dependabot-omnibus", "~> 0.113.28"
Stack-trace is as follows:
2020-02-18T11:43:58.5720467Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/421cd65a-a7fe-4bc5-a2af-45c55218843f.sh
2020-02-18T11:44:02.8397880Z Found @testing-library/jest-dom @ 4.2.4...
2020-02-18T11:44:08.5986362Z considering upgrade to 5.1.1
2020-02-18T11:44:08.6511870Z /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.113.28/lib/dependabot/shared_helpers.rb:117:in `rescue in run_helper_subprocess': Dependabot::SharedHelpers::HelperSubprocessFailed
2020-02-18T11:44:08.6513206Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.113.28/lib/dependabot/shared_helpers.rb:85:in `run_helper_subprocess'
2020-02-18T11:44:08.6513766Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:151:in `run_npm_top_level_updater'
2020-02-18T11:44:08.6514341Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:139:in `block in run_npm_updater'
2020-02-18T11:44:08.6514818Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.113.28/lib/dependabot/shared_helpers.rb:143:in `with_git_configured'
2020-02-18T11:44:08.6515367Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:137:in `run_npm_updater'
2020-02-18T11:44:08.6515892Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:115:in `run_current_npm_update'
2020-02-18T11:44:08.6516408Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:35:in `block (2 levels) in updated_lockfile_content'
2020-02-18T11:44:08.6516954Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:34:in `chdir'
2020-02-18T11:44:08.6517457Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:34:in `block in updated_lockfile_content'
2020-02-18T11:44:08.6518236Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.113.28/lib/dependabot/shared_helpers.rb:37:in `block (2 levels) in in_a_temporary_directory'
2020-02-18T11:44:08.6518749Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.113.28/lib/dependabot/shared_helpers.rb:37:in `chdir'
2020-02-18T11:44:08.6519309Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.113.28/lib/dependabot/shared_helpers.rb:37:in `block in in_a_temporary_directory'
2020-02-18T11:44:08.6519715Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/2.6.0/tmpdir.rb:93:in `mktmpdir'
2020-02-18T11:44:08.6520234Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.113.28/lib/dependabot/shared_helpers.rb:34:in `in_a_temporary_directory'
2020-02-18T11:44:08.6520718Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:30:in `updated_lockfile_content'
2020-02-18T11:44:08.6521287Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater.rb:187:in `updated_package_lock_content'
2020-02-18T11:44:08.6521759Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater.rb:120:in `package_lock_changed?'
2020-02-18T11:44:08.6522294Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater.rb:149:in `block in updated_lockfiles'
2020-02-18T11:44:08.6522750Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater.rb:148:in `each'
2020-02-18T11:44:08.6523258Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater.rb:148:in `updated_lockfiles'
2020-02-18T11:44:08.6523907Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater.rb:39:in `updated_dependency_files'
2020-02-18T11:44:08.6524288Z from ./update-script.rb:84:in `block in <main>'
2020-02-18T11:44:08.6524708Z from ./update-script.rb:47:in `each'
2020-02-18T11:44:08.6525064Z from ./update-script.rb:47:in `<main>'
2020-02-18T11:44:08.6525604Z /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/2.6.0/json/common.rb:156:in `parse': 767: unexpected token at '' (JSON::ParserError)
2020-02-18T11:44:08.6526344Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/2.6.0/json/common.rb:156:in `parse'
2020-02-18T11:44:08.6526824Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.113.28/lib/dependabot/shared_helpers.rb:109:in `run_helper_subprocess'
2020-02-18T11:44:08.6527386Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:151:in `run_npm_top_level_updater'
2020-02-18T11:44:08.6527913Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:139:in `block in run_npm_updater'
2020-02-18T11:44:08.6528418Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.113.28/lib/dependabot/shared_helpers.rb:143:in `with_git_configured'
2020-02-18T11:44:08.6528920Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:137:in `run_npm_updater'
2020-02-18T11:44:08.6530866Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:115:in `run_current_npm_update'
2020-02-18T11:44:08.6532487Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:35:in `block (2 levels) in updated_lockfile_content'
2020-02-18T11:44:08.6533066Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:34:in `chdir'
2020-02-18T11:44:08.6533708Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:34:in `block in updated_lockfile_content'
2020-02-18T11:44:08.6534315Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.113.28/lib/dependabot/shared_helpers.rb:37:in `block (2 levels) in in_a_temporary_directory'
2020-02-18T11:44:08.6534838Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.113.28/lib/dependabot/shared_helpers.rb:37:in `chdir'
2020-02-18T11:44:08.6536314Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.113.28/lib/dependabot/shared_helpers.rb:37:in `block in in_a_temporary_directory'
2020-02-18T11:44:08.6537774Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/2.6.0/tmpdir.rb:93:in `mktmpdir'
2020-02-18T11:44:08.6538992Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.113.28/lib/dependabot/shared_helpers.rb:34:in `in_a_temporary_directory'
2020-02-18T11:44:08.6539572Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:30:in `updated_lockfile_content'
2020-02-18T11:44:08.6539935Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater.rb:187:in `updated_package_lock_content'
2020-02-18T11:44:08.6540571Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater.rb:120:in `package_lock_changed?'
2020-02-18T11:44:08.6540937Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater.rb:149:in `block in updated_lockfiles'
2020-02-18T11:44:08.6541259Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater.rb:148:in `each'
2020-02-18T11:44:08.6541652Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater.rb:148:in `updated_lockfiles'
2020-02-18T11:44:08.6541991Z from /opt/hostedtoolcache/Ruby/2.6.5/x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.113.28/lib/dependabot/npm_and_yarn/file_updater.rb:39:in `updated_dependency_files'
2020-02-18T11:44:08.6542269Z from ./update-script.rb:84:in `block in <main>'
2020-02-18T11:44:08.6542496Z from ./update-script.rb:47:in `each'
2020-02-18T11:44:08.6542703Z from ./update-script.rb:47:in `<main>'
2020-02-18T11:44:08.6723405Z ##[error]Bash exited with code '1'.
2020-02-18T11:44:08.6735238Z ##[section]Finishing: Update dependencies
Script:
require "dependabot/file_fetchers"
require "dependabot/file_parsers"
require "dependabot/update_checkers"
require "dependabot/file_updaters"
require "dependabot/pull_request_creator"
require "dependabot/omnibus"
package_manager = "npm_and_yarn"
repo = "MY_REPO"
credentials = [{
"type" => "git_source",
"host" => "dev.azure.com",
"username" => "",
"password" => ENV["AZURE_ACCESS_TOKEN"]
},{
"type" => "npm",
"url" => "https://pkgs.dev.azure.com/MY_ORG/_packaging/MY_FEED/npm/package.json",
"token" => ":#{ENV["AZURE_ACCESS_TOKEN"]}"
}]
source = Dependabot::Source.new(
provider: "azure",
repo: repo,
hostname: "dev.azure.com",
api_endpoint: "https://dev.azure.com/",
directory: "/",
branch: nil,
)
fetcher = Dependabot::FileFetchers.for_package_manager(package_manager).new(
source: source,
credentials: credentials,
)
files = fetcher.files
commit = fetcher.commit
parser = Dependabot::FileParsers.for_package_manager(package_manager).new(
dependency_files: files,
source: source,
credentials: credentials,
)
dependencies = parser.parse
dependencies.select(&:top_level?).each do |dep|
puts "Found #{dep.name} @ #{dep.version}..."
checker = Dependabot::UpdateCheckers.for_package_manager(package_manager).new(
dependency: dep,
dependency_files: files,
credentials: credentials,
)
if checker.up_to_date?
puts " already using latest version"
next
end
requirements_to_unlock =
if !checker.requirements_unlocked_or_can_be?
if checker.can_update?(requirements_to_unlock: :none) then :none
else :update_not_possible
end
elsif checker.can_update?(requirements_to_unlock: :own) then :own
elsif checker.can_update?(requirements_to_unlock: :all) then :all
else :update_not_possible
end
next if requirements_to_unlock == :update_not_possible
updated_deps = checker.updated_dependencies(
requirements_to_unlock: requirements_to_unlock
)
puts " considering upgrade to #{checker.latest_version}"
updater = Dependabot::FileUpdaters.for_package_manager(package_manager).new(
dependencies: updated_deps,
dependency_files: files,
credentials: credentials,
)
updated_files = updater.updated_dependency_files
pr_creator = Dependabot::PullRequestCreator.new(
source: source,
base_commit: commit,
dependencies: updated_deps,
files: updated_files,
credentials: credentials,
label_language: true,
author_details: {
email: "dependabot@MY_DOMAIN",
name: "dependabot"
},
)
pull_request = pr_creator.create
if pull_request&.status == 201
content = JSON[pull_request.body]
puts " PR ##{content["pullRequestId"]} submitted"
else
puts " PR already exists or an error has occurred"
end
next unless pull_request
end
Hi, I am getting the same error. I am using the latest gem file too-
ruby "2.6.6"
source "https://rubygems.org"
gem "dependabot-omnibus", "~> 0.118.3"
Error:
Found body-parser @ 1.19.0...
already using latest version
Found express @ 4.17.1...
already using latest version
Found @types/body-parser @ 1.17.0...
considering upgrade to 1.19.0
Traceback (most recent call last):
25: from ./update.rb:67:in `<main>'
24: from ./update.rb:67:in `each'
23: from ./update.rb:104:in `block in <main>'
22: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater.rb:39:in `updated_dependency_files'
21: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater.rb:148:in `updated_lockfiles'
20: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater.rb:148:in `each'
19: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater.rb:149:in `block in updated_lockfiles'
18: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater.rb:120:in `package_lock_changed?'
17: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater.rb:187:in `updated_package_lock_content'
16: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:30:in `updated_lockfile_content'
15: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.118.3/lib/dependabot/shared_helpers.rb:34:in `in_a_temporary_directory'
14: from C:/Ruby26-x64/lib/ruby/2.6.0/tmpdir.rb:93:in `mktmpdir'
13: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.118.3/lib/dependabot/shared_helpers.rb:37:in `block in in_a_temporary_directory'
12: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.118.3/lib/dependabot/shared_helpers.rb:37:in `chdir'
11: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.118.3/lib/dependabot/shared_helpers.rb:37:in `block (2 levels) in in_a_temporary_directory'
10: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:34:in `block in updated_lockfile_content'
9: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:34:in `chdir'
8: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:35:in `block (2 levels) in updated_lockfile_content'
7: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:115:in `run_current_npm_update'
6: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:137:in `run_npm_updater'
5: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.118.3/lib/dependabot/shared_helpers.rb:141:in `with_git_configured'
4: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:139:in `block in run_npm_updater'
3: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:151:in `run_npm_top_level_updater'
2: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.118.3/lib/dependabot/shared_helpers.rb:108:in `run_helper_subprocess'
1: from C:/Ruby26-x64/lib/ruby/2.6.0/json/common.rb:156:in `parse'
C:/Ruby26-x64/lib/ruby/2.6.0/json/common.rb:156:in `parse': 767: unexpected token at '' (JSON::ParserError)
24: from ./update.rb:67:in `<main>'
23: from ./update.rb:67:in `each'
22: from ./update.rb:104:in `block in <main>'
21: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater.rb:39:in `updated_dependency_files'
20: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater.rb:148:in `updated_lockfiles'
19: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater.rb:148:in `each'
18: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater.rb:149:in `block in updated_lockfiles'
17: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater.rb:120:in `package_lock_changed?'
16: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater.rb:187:in `updated_package_lock_content'
15: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:30:in `updated_lockfile_content'
14: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.118.3/lib/dependabot/shared_helpers.rb:34:in `in_a_temporary_directory'
13: from C:/Ruby26-x64/lib/ruby/2.6.0/tmpdir.rb:93:in `mktmpdir'
12: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.118.3/lib/dependabot/shared_helpers.rb:37:in `block in in_a_temporary_directory'
11: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.118.3/lib/dependabot/shared_helpers.rb:37:in `chdir'
10: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.118.3/lib/dependabot/shared_helpers.rb:37:in `block (2 levels) in in_a_temporary_directory'
9: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:34:in `block in updated_lockfile_content'
8: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:34:in `chdir'
7: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:35:in `block (2 levels) in updated_lockfile_content'
6: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:115:in `run_current_npm_update'
5: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:137:in `run_npm_updater'
4: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.118.3/lib/dependabot/shared_helpers.rb:141:in `with_git_configured'
3: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:139:in `block in run_npm_updater'
2: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-npm_and_yarn-0.118.3/lib/dependabot/npm_and_yarn/file_updater/npm_lockfile_updater.rb:151:in `run_npm_top_level_updater'
1: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.118.3/lib/dependabot/shared_helpers.rb:84:in `run_helper_subprocess'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/dependabot-common-0.118.3/lib/dependabot/shared_helpers.rb:116:in `rescue in run_helper_subprocess': Dependabot::SharedHelpers::HelperSubprocessFailed
Any idea why this is occurring? Please revert back if anyone knows the solution for this.
Thanks
Do you want to update a npm based project? If so, try to delete package-lock.json
in your git repo.
@fhopfensperger I am experiencing the same issue. Can you elaborate a bit more, on why we need to delete the package-lock.json, I would like to have the updates alongside my package-lock.
Same issue as the peeps above. Agreed with @jcdesousa , the package-lock.json being deleted does 'fix' the error and produces a PR, but I don't see this as a solution as the package-lock file is a merit to the repository
I think I am seeing the same thing, but I do not have a package-lock.json to remove... I am trying to get Python deps
Hi, is there any update on this issue please? im stuck at the place wherein i make the call: updated_files = updater.updated_dependency_files
Is there any other solution for this issue? Now no longer throws an error but also doesn't update. Because of the checker with the error ":update_not_possible".
This is still an issue, and I'm currently experiencing this with dependabot-gitlab.