V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
jsjcjsjc
V2EX  ›  问与答

请教一个 hugo 博客的问题

  •  1
     
  •   jsjcjsjc · 2023-02-25 12:52:48 +08:00 · 678 次点击
    这是一个创建于 420 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我直接使用 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
    ```
    第 1 条附言  ·  2023-02-25 13:25:45 +08:00
    4 条回复    2023-02-25 17:36:10 +08:00
    hsfzxjy
        1
    hsfzxjy  
       2023-02-25 13:20:41 +08:00 via Android   ❤️ 1
    go.mod 也要改?
    jsjcjsjc
        2
    jsjcjsjc  
    OP
       2023-02-25 13:24:21 +08:00
    @hsfzxjy 改了
    jsjcjsjc
        3
    jsjcjsjc  
    OP
       2023-02-25 13:30:09 +08:00
    @hsfzxjy 是不是 https://github.com/CaiJimmy/hugo-theme-stack 中的 CaiJimmy 也要全部改成我的 fork?
    jsjcjsjc
        4
    jsjcjsjc  
    OP
       2023-02-25 17:36:10 +08:00
    @hsfzxjy 感谢,好像知道原因了,应该是需要修改 V3 里面的 go.mod,但是默认似乎不能修改~~
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2694 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 05:15 · PVG 13:15 · LAX 22:15 · JFK 01:15
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.