summaryrefslogtreecommitdiffstats
path: root/hugolib/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/config.go')
-rw-r--r--hugolib/config.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/hugolib/config.go b/hugolib/config.go
index 8444d15d9..9ccb87014 100644
--- a/hugolib/config.go
+++ b/hugolib/config.go
@@ -417,12 +417,18 @@ func (l configLoader) collectModules(modConfig modules.Config, v1 config.Provide
// Avoid recreating these later.
v1.Set("allModules", moduleConfig.ActiveModules)
+ // We want to watch these for changes and trigger rebuild on version
+ // changes etc.
if moduleConfig.GoModulesFilename != "" {
- // We want to watch this for changes and trigger rebuild on version
- // changes etc.
+
configFilenames = append(configFilenames, moduleConfig.GoModulesFilename)
}
+ if moduleConfig.GoWorkspaceFilename != "" {
+ configFilenames = append(configFilenames, moduleConfig.GoWorkspaceFilename)
+
+ }
+
return moduleConfig.ActiveModules, configFilenames, err
}