zhwguest
V2EX  ›  GitHub

github 的 go 工程,为什么自动化集成中对 go 的版本号要限制为 1.23 的格式呢

  •  
  •   zhwguest · Jan 7, 2024 · 1969 views
    This topic created in 858 days ago, the information mentioned may be changed or developed.

    每次一运行 go mod tidy ,go 的版本就变成 1.21.5 ,结果推上去的版本就无法成功编译自动化测试了。

    go.mod:3: invalid go version '1.21.4': must match format 1.23

    1 replies    2024-01-07 15:37:00 +08:00
    mainjzb
        1
    mainjzb  
       Jan 7, 2024
    go 版本比 go mod 里写的低会提示这个报错
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1108 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 18:18 · PVG 02:18 · LAX 11:18 · JFK 14:18
    ♥ Do have faith in what you're doing.