mirror of
https://github.com/docker/docs.git
synced 2026-03-30 07:48:52 +07: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user