travis error: The command "go get -u -v github.com/spf13/hugo" failed and exited with 1 during
travis error: The command "go get -u -v github.com/spf13/hugo" failed and exited with 1 during
我在尝试使用 travis 构建我的 hugo 博客时收到以下错误:
The command "go get -u -v github.com/spf13/hugo" failed and exited with 1 during .
我尝试创建一个包含空配方的 makefile , but had no success. Here is the build log。
关于如何避免这个错误有什么建议吗?
go get
并不真正适用于 Hugo——或者更准确地说:行为未定义。
Hugo 供应其依赖项,但不会将它们提交给 GitHub 存储库。所以你必须使用 dep
和 mage
(Make 的 Go 变体)——最简单的方法是查看这个 Travis 设置:
https://github.com/gohugoio/hugo/blob/master/.travis.yml
请注意,如果这是为了获得工作 CI 设置来构建 Hugo 站点,我建议仅通过 curl
或 wget
从此处获取其中一个版本:
我在尝试使用 travis 构建我的 hugo 博客时收到以下错误:
The command "go get -u -v github.com/spf13/hugo" failed and exited with 1 during .
我尝试创建一个包含空配方的 makefile
关于如何避免这个错误有什么建议吗?
go get
并不真正适用于 Hugo——或者更准确地说:行为未定义。
Hugo 供应其依赖项,但不会将它们提交给 GitHub 存储库。所以你必须使用 dep
和 mage
(Make 的 Go 变体)——最简单的方法是查看这个 Travis 设置:
https://github.com/gohugoio/hugo/blob/master/.travis.yml
请注意,如果这是为了获得工作 CI 设置来构建 Hugo 站点,我建议仅通过 curl
或 wget
从此处获取其中一个版本: