mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 16:17:21 +00:00
1 file changed
+7
@@ -264,6 +264,13 @@ func (c *Client) Get(args ...string) error {
|
||||
|
||||
// We need to be explicit about the modules to get.
|
||||
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
|
||||
if update {
|
||||
args = []string{"-u"}
|
||||
|
||||
Reference in new issue
Block a user