Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several updates and improvements across multiple files, focusing on upgrading dependencies, enhancing logging, and refactoring code for better readability and maintainability. Below are the most important changes grouped by theme:
Dependency Upgrades:
actions/setup-go
action to version 5 and set the Go version tostable
in.github/workflows/build.yml
and.github/workflows/release.yml
. [1] [2]goreleaser/goreleaser-action
to version 6 in.github/workflows/release.yml
.Configuration and Build:
.golangci.yml
to enable specific linters and set exclusion rules for test files.Makefile
to use the-trimpath
flag in thebuild
target and upgraded the Go version indockertest
anddockerinteg
targets. [1] [2]Logging Enhancements:
log
package withlog/slog
for structured logging incmd/process-exporter/main.go
andcollector/process_collector.go
. [1] [2]cmd/process-exporter/main.go
. [1] [2]Code Refactoring:
cmd/process-exporter/main.go
to usekingpin
for better command-line argument parsing.ioutil.TempFile
andioutil.ReadFile
withos.CreateTemp
andos.ReadFile
respectively incmd/load-generator/main.go
andconfig/config.go
. [1] [2]Miscellaneous:
//go:build linux
tocmd/load-generator/main.go
for specifying the target operating system.cmd/integration-tester/main.go
. [1] [2]These changes collectively aim to modernize the codebase, improve logging, and ensure compatibility with the latest tools and dependencies.