// build executes a build against a file system. func (m *Main) build(build *bake.Build, fs bake.FileSystem, ss *bake.Snapshot) error { // Execute build. b := bake.NewBuilder() b.FileSystem = fs b.Snapshot = ss b.Output = m.Stderr b.Build(build) if err := build.RootErr(); err != nil { return err } return nil }