mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
644d55475d
commit
251a23ef76
1 changed files with 3 additions and 2 deletions
|
@ -268,13 +268,14 @@ Run "go help get" for more information. All flags available for "go get" is also
|
||||||
if info.Name() == "go.mod" {
|
if info.Name() == "go.mod" {
|
||||||
// Found a module.
|
// Found a module.
|
||||||
dir := filepath.Dir(path)
|
dir := filepath.Dir(path)
|
||||||
r.Println("Update module in", dir)
|
|
||||||
cfg := config.New()
|
cfg := config.New()
|
||||||
cfg.Set("workingDir", dir)
|
cfg.Set("workingDir", dir)
|
||||||
conf, err := r.ConfigFromProvider(r.configVersionID.Load(), flagsToCfg(cd, cfg))
|
conf, err := r.ConfigFromProvider(r.configVersionID.Add(1), flagsToCfg(cd, cfg))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
r.Println("Update module in", conf.configs.Base.WorkingDir)
|
||||||
client := conf.configs.ModulesClient
|
client := conf.configs.ModulesClient
|
||||||
return client.Get(args...)
|
return client.Get(args...)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue