Skip to content

Commit 6d054fc

Browse files
committed
I missed passing in the logger to the DockerReference parsing from the Dockerfile detector
1 parent d1a648d commit 6d054fc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Microsoft.ComponentDetection.Detectors/dockerfile/DockerfileComponentDetector.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ private Task ParseDockerFileAsync(string fileContents, string fileLocation, ISin
123123

124124
if (!string.IsNullOrEmpty(stageNameReference))
125125
{
126-
return DockerReferenceUtility.TryParseImageReference(stageNameReference);
126+
return DockerReferenceUtility.TryParseImageReference(stageNameReference, this.Logger);
127127
}
128128

129-
return DockerReferenceUtility.TryParseImageReference(reference);
129+
return DockerReferenceUtility.TryParseImageReference(reference, this.Logger);
130130
}
131131

132132
private DockerReference? ParseCopyInstruction(DockerfileConstruct construct, char escapeChar, Dictionary<string, string> stageNameMap)
@@ -142,9 +142,9 @@ private Task ParseDockerFileAsync(string fileContents, string fileLocation, ISin
142142
stageNameMap.TryGetValue(reference, out var stageNameReference);
143143
if (!string.IsNullOrEmpty(stageNameReference))
144144
{
145-
return DockerReferenceUtility.TryParseImageReference(stageNameReference);
145+
return DockerReferenceUtility.TryParseImageReference(stageNameReference, this.Logger);
146146
}
147147

148-
return DockerReferenceUtility.TryParseImageReference(reference);
148+
return DockerReferenceUtility.TryParseImageReference(reference, this.Logger);
149149
}
150150
}

0 commit comments

Comments
 (0)