mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
builder: rewrote NewBuildFile according to tibor's comments
Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
This commit is contained in:
parent
22c46af4b3
commit
bb36902db6
1 changed files with 2 additions and 1 deletions
|
@ -57,7 +57,8 @@ type BuildOpts struct {
|
|||
AuthConfigFile *registry.ConfigFile
|
||||
}
|
||||
|
||||
func (opts *BuildOpts) NewBuildFile(file io.ReadWriteCloser) (*buildFile, error) {
|
||||
func NewBuildFile(file io.ReadWriteCloser, opts *BuildOpts) (*buildFile, error) {
|
||||
defer file.Close()
|
||||
ast, err := parser.Parse(file)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Reference in a new issue