@@ -7,13 +7,13 @@ import (
77 "bufio"
88 "bytes"
99 "fmt"
10+ df "github.com/mintoolkit/mint/pkg/docker/dockerfile"
1011 "io"
1112 "regexp"
1213 "strconv"
1314 "strings"
1415 "unicode"
1516
16- "github.com/mintoolkit/mint/pkg/docker/instruction"
1717 "github.com/pkg/errors"
1818)
1919
@@ -190,24 +190,24 @@ func init() {
190190 // functions. Errors are propagated up by Parse() and the resulting AST can
191191 // be incorporated directly into the existing AST as a next.
192192 dispatch = map [string ]func (string , * Directive ) (* Node , map [string ]bool , error ){
193- instruction . Add : parseMaybeJSONToList ,
194- instruction . Arg : parseNameOrNameVal ,
195- instruction . Cmd : parseMaybeJSON ,
196- instruction . Copy : parseMaybeJSONToList ,
197- instruction . Entrypoint : parseMaybeJSON ,
198- instruction . Env : parseEnv ,
199- instruction . Expose : parseStringsWhitespaceDelimited ,
200- instruction . From : parseStringsWhitespaceDelimited ,
201- instruction . Healthcheck : parseHealthConfig ,
202- instruction . Label : parseLabel ,
203- instruction . Maintainer : parseString ,
204- instruction . Onbuild : parseSubCommand ,
205- instruction . Run : parseMaybeJSON ,
206- instruction . Shell : parseMaybeJSON ,
207- instruction . StopSignal : parseString ,
208- instruction . User : parseString ,
209- instruction . Volume : parseMaybeJSONToList ,
210- instruction . Workdir : parseString ,
193+ df . InstTypeAdd : parseMaybeJSONToList ,
194+ df . InstTypeArg : parseNameOrNameVal ,
195+ df . InstTypeCmd : parseMaybeJSON ,
196+ df . InstTypeCopy : parseMaybeJSONToList ,
197+ df . InstTypeEntrypoint : parseMaybeJSON ,
198+ df . InstTypeEnv : parseEnv ,
199+ df . InstTypeExpose : parseStringsWhitespaceDelimited ,
200+ df . InstTypeFrom : parseStringsWhitespaceDelimited ,
201+ df . InstTypeHealthcheck : parseHealthConfig ,
202+ df . InstTypeLabel : parseLabel ,
203+ df . InstTypeMaintainer : parseString ,
204+ df . InstTypeOnbuild : parseSubCommand ,
205+ df . InstTypeRun : parseMaybeJSON ,
206+ df . InstTypeShell : parseMaybeJSON ,
207+ df . InstTypeStopSignal : parseString ,
208+ df . InstTypeUser : parseString ,
209+ df . InstTypeVolume : parseMaybeJSONToList ,
210+ df . InstTypeWorkdir : parseString ,
211211 }
212212}
213213
0 commit comments