From 2f474d8933d06a7ceb9c817156ca3778ac8f34e0 Mon Sep 17 00:00:00 2001 From: Chris Werner Rau Date: Mon, 26 Sep 2022 17:18:03 +0200 Subject: [PATCH] fix(parser): don't always skip the first YAML document Just keep skipping empty documents --- manifest/parse.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/manifest/parse.go b/manifest/parse.go index ad2f6dc4..8ec7a9cb 100644 --- a/manifest/parse.go +++ b/manifest/parse.go @@ -94,8 +94,6 @@ func Parse(manifest string, defaultNamespace string, normalizeManifests bool, ex scanner.Split(scanYamlSpecs) // Allow for tokens (specs) up to 10MiB in size scanner.Buffer(make([]byte, bufio.MaxScanTokenSize), 10485760) - // Discard the first result, we only care about everything after the first separator - scanner.Scan() result := make(map[string]*MappingResult)