Sfoglia il codice sorgente

Builder - parser - remove OS

Signed-off-by: John Howard <jhoward@microsoft.com>
John Howard 7 anni fa
parent
commit
98dd1fdca1
1 ha cambiato i file con 1 aggiunte e 5 eliminazioni
  1. 1 5
      builder/dockerfile/parser/parser.go

+ 1 - 5
builder/dockerfile/parser/parser.go

@@ -237,10 +237,7 @@ func newNodeFromLine(line string, directive *Directive) (*Node, error) {
 type Result struct {
 type Result struct {
 	AST         *Node
 	AST         *Node
 	EscapeToken rune
 	EscapeToken rune
-	// TODO @jhowardmsft - see https://github.com/moby/moby/issues/34617
-	// This next field will be removed in a future update for LCOW support.
-	OS       string
-	Warnings []string
+	Warnings    []string
 }
 }
 
 
 // PrintWarnings to the writer
 // PrintWarnings to the writer
@@ -320,7 +317,6 @@ func Parse(rwc io.Reader) (*Result, error) {
 		AST:         root,
 		AST:         root,
 		Warnings:    warnings,
 		Warnings:    warnings,
 		EscapeToken: d.escapeToken,
 		EscapeToken: d.escapeToken,
-		OS:          d.platformToken,
 	}, handleScannerError(scanner.Err())
 	}, handleScannerError(scanner.Err())
 }
 }