请教一个 hugo 博客的问题

2023-02-25 12:52:48 +08:00
 jsjcjsjc
我直接使用 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/v3@v3.16.0: 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/v3@v3.16.0: 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
```
684 次点击
所在节点    问与答
4 条回复
hsfzxjy
2023-02-25 13:20:41 +08:00
go.mod 也要改?
jsjcjsjc
2023-02-25 13:24:21 +08:00
@hsfzxjy 改了
jsjcjsjc
2023-02-25 13:30:09 +08:00
@hsfzxjy 是不是 https://github.com/CaiJimmy/hugo-theme-stack 中的 CaiJimmy 也要全部改成我的 fork?
jsjcjsjc
2023-02-25 17:36:10 +08:00
@hsfzxjy 感谢,好像知道原因了,应该是需要修改 V3 里面的 go.mod,但是默认似乎不能修改~~

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/919099

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX