hugo-mods / icons

A Hugo icon system module that scales.
https://hugo-mods.github.io/#icons
Apache License 2.0
23 stars 2 forks source link

go list -m: can't compute 'all' using the vendor directory #5

Closed howdu closed 2 years ago

howdu commented 2 years ago

Having isuses setting this to install with errors:

$ hugo mod get -u

go list -m: can't compute 'all' using the vendor directory
        (Use -mod=mod or -mod=readonly to bypass.)
WARN 2022/03/31 19:45:20 failed to list modules: failed to execute 'go [list -m -json all]': failed to execute binary "go" with args [list -m -json all]: go list -m: can't compute 'all' using the vendor directory
        (Use -mod=mod or -mod=readonly to bypass.)
 *errors.errorString
go get: added github.com/hugo-mods/icons v0.0.0-20211204094455-ce8763589b4a

$ hugo version

hugo v0.94.2+extended darwin/amd64 BuildDate=unknown

go.mod

module github.com/howdu/test

go 1.17

require github.com/hugo-mods/icons v0.0.0-20211204094455-ce8763589b4a // indirect

go.sum

github.com/FortAwesome/Font-Awesome v0.0.0-20210316185733-d79d85c3fad8/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
github.com/hugo-mods/icons v0.0.0-20211204094455-ce8763589b4a h1:ZT9rx0pweU4vmYITDwESn8+0jG2VHTNaWK0zqD+ZknA=
github.com/hugo-mods/icons v0.0.0-20211204094455-ce8763589b4a/go.mod h1:sPodUyqumOYz75PKIwmqOYZXLIcLAujn7V9+1Hk4VW8=

config.toml

# SETUP
baseurl = "https://test.local/"
DefaultContentLanguage = "en"
disableHugoGeneratorInject = "true"
disableKinds = ["RSS","taxonomy","taxonomyTerm"] # disable hugo's content that we don't need...
enableRobotsTXT = "true"
showBreadcrumbs = "true"

theme = "congo"
colorScheme = "ocean" # https://jpanther.github.io/congo/docs/getting-started/#menus

[mediaTypes]
  [mediaTypes."application/x-php"]
    suffixes = ["php"]

[outputFormats]
  [outputFormats.PHP]
    mediaType = "application/x-php"
    isPlainText = true
    baseName = "index"

[markup.goldmark.renderer]
unsafe= true
hardWraps = true

[[module.imports]]
path = "github.com/hugo-mods/icons"

Let me know if I can

howdu commented 2 years ago

Not sure what was wrong here but managed to fix by running hugo mod clean with hugo mod get -u