共计 1528 个字符,预计需要花费 4 分钟才能阅读完成。
我直接使用 https://github.com/CaiJimmy/hugo-theme-stack-starter 搭建在 cloudflare, 比较方便, 但是很多资源应该还是引用 https://github.com/CaiJimmy/hugo-theme-stack-starter, 所以我 fork 了一份, 把 hugo-theme-stack-starter 中的所有连接改成我 fork 的地址. 但是 cloudflare 部署的时候还是显示错误, 还需要修改哪里吗? 感谢
- 12:42:03.696 Finished restoring cached go cache
- 12:42:03.830 go version go1.14.4 linux/amd64
- 12:42:03.846 go version go1.14.4 linux/amd64
- 12:42:03.848 Installing missing commands
- 12:42:03.849 Verify run directory
- 12:42:03.849 Executing user command: hugo
- 12:42:04.928 go: github.com/jsjcjsjc/hugo-theme-stack/[email protected]: parsing go.mod:
- 12:42:04.929 module declares its path as: github.com/CaiJimmy/hugo-theme-stack/v3
- 12:42:04.929 but was required as: github.com/jsjcjsjc/hugo-theme-stack/v3
- 12:42:04.930 hugo: collected modules in 1032 ms
- 12:42:04.931 Error: failed to download modules: failed to execute ‘go [mod download]’: failed to execute binary “go” with args [mod download]: go: github.com/jsjcjsjc/hugo-theme-stack/[email protected]: parsing go.mod:
- 12:42:04.931 module declares its path as: github.com/CaiJimmy/hugo-theme-stack/v3
- 12:42:04.931 but was required as: github.com/jsjcjsjc/hugo-theme-stack/v3
- 12:42:04.932 *errors.errorString
- 12:42:04.932 Total in 1037 ms
- 12:42:04.939 Failed: build command exited with code: 255
- 12:42:07.807 Failed: an internal error occurred
复制代码
|
网友回复:
注册 : 顶一下
佳辉的春天 : github.com/jsjcjsjc/hugo-theme-stack/[email protected] 这是你的 github?你 fork 的没有发布版本啊
佳辉的春天 : 咋发布哈,不大会玩,感谢
萌䒤萌 : 我也不懂 go 只是看你的 fork 的和原来的差别好像是没有发布 Release 点右边的 Release 会有操作选项的
佳辉的春天 : 感谢, 好像知道原因了, 应该是需要修改 V3 里面的 go.mod, 但是默认似乎不能修改~~