jsjcjsjc
V2EX  ›  问与答

请教一个 hugo 博客的问题

  •  1
     
  •   jsjcjsjc · Feb 25, 2023 · 1157 views
    This topic created in 1172 days ago, the information mentioned may be changed or developed.
    我直接使用 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
    ```
    4 replies    2023-02-25 17:36:10 +08:00
    hsfzxjy
        1
    hsfzxjy  
       Feb 25, 2023 via Android   ❤️ 1
    go.mod 也要改?
    jsjcjsjc
        2
    jsjcjsjc  
    OP
       Feb 25, 2023
    @hsfzxjy 改了
    jsjcjsjc
        3
    jsjcjsjc  
    OP
       Feb 25, 2023
    @hsfzxjy 是不是 https://github.com/CaiJimmy/hugo-theme-stack 中的 CaiJimmy 也要全部改成我的 fork?
    jsjcjsjc
        4
    jsjcjsjc  
    OP
       Feb 25, 2023
    @hsfzxjy 感谢,好像知道原因了,应该是需要修改 V3 里面的 go.mod,但是默认似乎不能修改~~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3298 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 13:08 · PVG 21:08 · LAX 06:08 · JFK 09:08
    ♥ Do have faith in what you're doing.