How does Go update third-party packages?

后端 未结 7 1080
盖世英雄少女心
盖世英雄少女心 2020-12-22 15:35

Looking how actively golang packages grow and improve I wonder how the problem with package versions is solved?

I see that one way is to store third-party packages u

7条回答
  •  有刺的猬
    2020-12-22 16:06

    To specify versions, or commits:

    go get -u otherpackage@1.2.3
    
    go get -u otherpackage@git-sha
    

    See https://github.com/golang/go/wiki/Modules#daily-workflow

提交回复
热议问题