mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
@ -264,6 +264,13 @@ func (c *Client) Get(args ...string) error {
|
|||||||
|
|
||||||
// We need to be explicit about the modules to get.
|
// We need to be explicit about the modules to get.
|
||||||
for _, m := range c.moduleConfig.Imports {
|
for _, m := range c.moduleConfig.Imports {
|
||||||
|
if !isProbablyModule(m.Path) {
|
||||||
|
// Skip themes/components stored below /themes etc.
|
||||||
|
// There may be false positives in the above, but those
|
||||||
|
// should be rare, and they will fail below with an
|
||||||
|
// "cannot find module providing ..." message.
|
||||||
|
continue
|
||||||
|
}
|
||||||
var args []string
|
var args []string
|
||||||
if update {
|
if update {
|
||||||
args = []string{"-u"}
|
args = []string{"-u"}
|
||||||
|
Reference in New Issue
Block a user