How does Go update third-party packages?

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

    The above answeres have the following problems:

    1. They update everything including your app (in case you have uncommitted changes).
    2. They updated packages you may have already removed from your project but are already on your disk.

    To avoid these, do the following:

    1. Delete the 3rd party folders that you want to update.
    2. go to your app folder and run go get -d

提交回复
热议问题