Update c/image and c/common to latest, c/buildah to main

... to include https://github.com/containers/image/pull/2173,
https://github.com/containers/common/pull/1731
and https://github.com/containers/buildah/pull/5143 .

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
Miloslav Trmač
2023-11-07 20:25:12 +01:00
parent 71aac2f430
commit ced07a55f4
65 changed files with 1138 additions and 505 deletions

View File

@ -261,6 +261,10 @@ func Parse(rwc io.Reader) (*Result, error) {
currentLine := 0
root := &Node{StartLine: -1}
scanner := bufio.NewScanner(rwc)
buf := []byte{}
// containerfile may contain large lines,
// allocate 2MB for such use-cases.
scanner.Buffer(buf, 2048*1024)
warnings := []string{}
var err error
@ -312,6 +316,10 @@ func Parse(rwc io.Reader) (*Result, error) {
root.AddChild(child, startLine, currentLine)
}
if scannerErr := scanner.Err(); scannerErr != nil {
return nil, scannerErr
}
if len(warnings) > 0 {
warnings = append(warnings, "[WARNING]: Empty continuation lines will become errors in a future release.")
}