Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
259312bb
Commit
259312bb
authored
7 years ago
by
Rhys Arkins
Browse files
Options
Downloads
Patches
Plain Diff
fix: catch Host key verification error for all lock file types
parent
4c3581ca
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/workers/branch/lock-files.js
+20
-0
20 additions, 0 deletions
lib/workers/branch/lock-files.js
with
20 additions
and
0 deletions
lib/workers/branch/lock-files.js
+
20
−
0
View file @
259312bb
...
...
@@ -480,6 +480,11 @@ async function getUpdatedLockFiles(config) {
}
}
}
// istanbul ignore if
if
(
res
.
stderr
&&
res
.
stderr
.
includes
(
'
Host key verification failed
'
))
{
logger
.
info
({
stderr
:
res
.
stderr
},
'
Host key verification failed
'
);
throw
new
Error
(
'
internal-error
'
);
}
lockFileErrors
.
push
({
lockFile
:
lockFileName
,
stderr
:
res
.
stderr
,
...
...
@@ -527,6 +532,11 @@ async function getUpdatedLockFiles(config) {
/* eslint-enable no-useless-escape */
}
}
// istanbul ignore if
if
(
res
.
stderr
&&
res
.
stderr
.
includes
(
'
Host key verification failed
'
))
{
logger
.
info
({
stderr
:
res
.
stderr
},
'
Host key verification failed
'
);
throw
new
Error
(
'
internal-error
'
);
}
lockFileErrors
.
push
({
lockFile
:
lockFileName
,
stderr
:
res
.
stderr
,
...
...
@@ -572,6 +582,11 @@ async function getUpdatedLockFiles(config) {
}
}
}
// istanbul ignore if
if
(
res
.
stdout
&&
res
.
stdout
.
includes
(
'
Host key verification failed
'
))
{
logger
.
info
({
stdout
:
res
.
stdout
},
'
Host key verification failed
'
);
throw
new
Error
(
'
internal-error
'
);
}
lockFileErrors
.
push
({
lockFile
:
lockFileName
,
stderr
:
res
.
stderr
,
...
...
@@ -614,6 +629,11 @@ async function getUpdatedLockFiles(config) {
)
{
throw
new
Error
(
'
Out of disk space when generating yarn.lock
'
);
}
// istanbul ignore if
if
(
res
.
stderr
&&
res
.
stderr
.
includes
(
'
Host key verification failed
'
))
{
logger
.
info
({
stderr
:
res
.
stderr
},
'
Host key verification failed
'
);
throw
new
Error
(
'
internal-error
'
);
}
lockFileErrors
.
push
({
lockFile
,
stderr
:
res
.
stderr
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment