Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
Diffstat (limited to 'deps')
-rw-r--r--deps/deps.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/deps.go b/deps/deps.go
index 82a16ba59..07fe2fc7d 100644
--- a/deps/deps.go
+++ b/deps/deps.go
@@ -97,6 +97,9 @@ type Deps struct {
// This is common/global for all sites.
BuildState *BuildState
+ // Whether we are in running (server) mode
+ Running bool
+
*globalErrHandler
}
@@ -279,6 +282,7 @@ func New(cfg DepsCfg) (*Deps, error) {
FileCaches: fileCaches,
BuildStartListeners: &Listeners{},
BuildState: buildState,
+ Running: cfg.Running,
Timeout: time.Duration(timeoutms) * time.Millisecond,
globalErrHandler: errorHandler,
}