Updating dependencies » History » Version 3
Tom Clegg, 06/10/2024 03:22 PM
1 | 1 | Tom Clegg | h1. Updating dependencies |
---|---|---|---|
2 | |||
3 | h2. Go |
||
4 | |||
5 | 3 | Tom Clegg | (see also: "real documentation":https://go.dev/doc/modules/managing-dependencies) |
6 | 1 | Tom Clegg | |
7 | 3 | Tom Clegg | Update a single dependency: |
8 | 1 | Tom Clegg | |
9 | 3 | Tom Clegg | ~/arvados$ go get github.com/docker/docker@latest |
10 | 1 | Tom Clegg | |
11 | 3 | Tom Clegg | Update all dependencies: |
12 | |||
13 | ~/arvados$ go get -u -t ./... |
||
14 | |||
15 | Then sync: |
||
16 | |||
17 | ~/arvados$ go mod tidy |
||
18 | |||
19 | This is a good time to review "replace" directives in source:go.mod and find better solutions to issues that are currently handled by pinning modules to old versions or unmaintained forks. |