Skip to content

Commit

Permalink
modules: Do not try to get local themes in "hugo mod get"
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Feb 18, 2020
1 parent a21a937 commit 20f2211
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down

0 comments on commit 20f2211

Please sign in to comment.