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 to the Go version, context handling, and dependencies across multiple files. The most important changes include upgrading the Go version, adding context support to various functions, and updating dependencies to their latest versions.
Go Version Updates:
.github/workflows/release.yml
: Updated Go version from1.22
to1.23
..github/workflows/test.yml
: Updated Go version from1.22
to1.23
.go.mod
: Updated Go version from1.12
to1.21
.Context Handling:
cmd/irc-msgr/main.go
: Added context handling and improved logging setup.cmd/nopaste/main.go
: Added context handling to the main function and updatedRun
function calls accordingly. [1] [2]config.go
: Added context handling to configuration loading and saving functions. [1] [2] [3] [4]msgr.go
: Added context handling to theRunMsgr
function.nopaste.go
: Added context handling to various functions, includingRun
,saveContent
, andsnsHandler
. [1] [2] [3] [4] [5] [6] [7] [8] [9]sns.go
: RefactoredNewSNS
function to use context and updated AWS SDK initialization.storage.go
: Added context handling to storage functions and updated AWS SDK usage. [1] [2] [3]Dependency Updates:
go.mod
: Updated AWS SDK to v2 and other dependencies to their latest versions.Makefile Improvements:
Makefile
: Changedgoreleaser
build command to use--clean
instead of--rm-dist
.These changes enhance the codebase by ensuring compatibility with the latest Go version, improving context management across functions, and updating dependencies for better performance and security.aws-sdk-go-v2