|
@@ -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())
|
|
}
|
|
}
|
|
|
|
|