Skip to content
Permalink
Browse files

deps: Make the build flags shared between sites

Updates #6789
  • Loading branch information
bep committed Jan 23, 2020
1 parent f441f67 commit 0df7bd62df460a49544845d5332f33b2020b48a1
Showing with 2 additions and 2 deletions.
  1. +2 −2 deps/deps.go
@@ -94,7 +94,7 @@ type Deps struct {
BuildStartListeners *Listeners

// Atomic flags set during a build.
BuildFlags BuildFlags
BuildFlags *BuildFlags

*globalErrHandler
}
@@ -274,6 +274,7 @@ func New(cfg DepsCfg) (*Deps, error) {
Site: cfg.Site,
FileCaches: fileCaches,
BuildStartListeners: &Listeners{},
BuildFlags: &BuildFlags{},
Timeout: time.Duration(timeoutms) * time.Millisecond,
globalErrHandler: &globalErrHandler{},
}
@@ -330,7 +331,6 @@ func (d Deps) ForLanguage(cfg DepsCfg, onCreated func(d *Deps) error) (*Deps, er
}

d.BuildStartListeners = &Listeners{}
d.BuildFlags = BuildFlags{}

return &d, nil

0 comments on commit 0df7bd6

Please sign in to comment.
You can’t perform that action at this time.