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
9d6ec38a
Commit
9d6ec38a
authored
5 years ago
by
Rhys Arkins
Browse files
Options
Downloads
Patches
Plain Diff
fix(bundler): look in stdout and stderr for resolve matches
parent
7b5485ed
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/manager/bundler/artifacts.ts
+3
-2
3 additions, 2 deletions
lib/manager/bundler/artifacts.ts
with
3 additions
and
2 deletions
lib/manager/bundler/artifacts.ts
+
3
−
2
View file @
9d6ec38a
...
...
@@ -161,13 +161,14 @@ export async function updateArtifacts(
global
.
repoCache
.
bundlerArtifactsError
=
BUNDLER_INVALID_CREDENTIALS
;
throw
new
Error
(
BUNDLER_INVALID_CREDENTIALS
);
}
const
output
=
err
.
stdout
+
err
.
stderr
;
const
resolveMatchRe
=
new
RegExp
(
'
\\
s+(.*) was resolved to
'
,
'
g
'
);
if
(
err
.
stderr
&&
err
.
stderr
.
match
(
resolveMatchRe
))
{
if
(
output
.
match
(
resolveMatchRe
))
{
logger
.
debug
({
err
},
'
Bundler has a resolve error
'
);
const
resolveMatches
=
[];
let
resolveMatch
;
do
{
resolveMatch
=
resolveMatchRe
.
exec
(
err
.
stderr
);
resolveMatch
=
resolveMatchRe
.
exec
(
output
);
if
(
resolveMatch
)
{
resolveMatches
.
push
(
resolveMatch
[
1
].
split
(
'
'
).
shift
());
}
...
...
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