How does Go update third-party packages?

后端 未结 7 1082
盖世英雄少女心
盖世英雄少女心 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:13

    go 1.13

    (exec from module root directory)

    Update specified dependencies:

    go get -u <package-name>
    

    Update all direct and indirect dependencies to latest minor or patch upgrades (pre-releases are ignored):

    go get -u ./...
    # or
    go get -u=patch ./...
    

    Reference:

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

    go help get

    0 讨论(0)
提交回复
热议问题