mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Builder - parser - remove OS
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
3d14173a29
commit
98dd1fdca1
1 changed files with 1 additions and 5 deletions
|
@ -237,9 +237,6 @@ 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue