-
Notifications
You must be signed in to change notification settings - Fork 488
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build image and add docs (#6983)
- Loading branch information
Showing
4 changed files
with
62 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Updating Agent to a new Go version | ||
|
||
There is more to updating Go than simply updating the `go.mod` file. | ||
You will need to submit two pull requests: | ||
|
||
1. [Create a new build image.][build-image-instructions] | ||
2. Update Agent to use the new Go version, and the new build image. | ||
See [this][example-pr] pull request for an example. | ||
At this point you can just search and replace all instances of the old version with the new one. | ||
For example, "1.22.1" would be replaced with "1.22.5". | ||
|
||
The Go image which is used may sometimes have a name, like "bullseye". | ||
The origins of the name are explained in more detail in [Go's DockerHub repository][go-dockerhub]: | ||
|
||
> Some of these tags may have names like bookworm or bullseye in them. | ||
> These are the suite code names for releases of Debian and indicate which release the image is based on. | ||
> If your image needs to install any additional packages beyond what comes with the image, | ||
> you'll likely want to specify one of these explicitly to minimize breakage when there are new releases of Debian. | ||
[build-image-instructions]:../../build-image/README.md | ||
[go-dockerhub]:https://hub.docker.com/_/golang | ||
[example-pr]:https://github.com/grafana/agent/pull/6646/files |