Skip to content

Commit 403cf7e

Browse files
committed
chore: go 1.23
1 parent b9f8212 commit 403cf7e

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

.golangci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,6 @@ issues:
6363
- linters:
6464
- staticcheck
6565
text: 'SA1019: "github.com/axiomhq/axiom-go/axiom/querylegacy"'
66+
- linters:
67+
- gosec
68+
text: "G115: integer overflow conversion"

.goreleaser.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ before:
66
hooks:
77
- make man
88

9+
git:
10+
prerelease_suffix: "-"
11+
912
builds:
1013
- <<: &build_defaults
1114
binary: axiom

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ dep-clean: ## Remove obsolete dependencies
8181
.PHONY: dep-upgrade
8282
dep-upgrade: ## Upgrade all direct dependencies to their latest version
8383
@echo ">> upgrading dependencies"
84-
@$(GO) get -d $(shell $(GO) list -f '{{if not (or .Main .Indirect)}}{{.Path}}{{end}}' -m all)
84+
@$(GO) get $(shell $(GO) list -f '{{if not (or .Main .Indirect)}}{{.Path}}{{end}}' -m all)
8585
@make dep
8686

8787
.PHONY: dep

internal/cmd/ingest/ingest.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,14 +364,14 @@ func run(ctx context.Context, opts *options, flushEverySet, batchSizeSet, csvFie
364364
if res.Ingested > 0 {
365365
fmt.Fprintf(opts.IO.ErrOut(), "%s Ingested %s\n",
366366
cs.SuccessIcon(),
367-
utils.Pluralize(cs, "event", int(res.Ingested)), //nolint:gosec // Not relevant here.
367+
utils.Pluralize(cs, "event", int(res.Ingested)),
368368
)
369369
}
370370

371371
if res.Failed > 0 {
372372
fmt.Fprintf(opts.IO.ErrOut(), "%s Failed to ingest %s:\n\n",
373373
cs.ErrorIcon(),
374-
utils.Pluralize(cs, "event", int(res.Failed)), //nolint:gosec // Not relevant here.
374+
utils.Pluralize(cs, "event", int(res.Failed)),
375375
)
376376
for _, fail := range res.Failures {
377377
fmt.Fprintf(opts.IO.ErrOut(), "%s: %s\n",

internal/cmd/root/help.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func rootHelpFunc(io *terminal.IO) func(*cobra.Command, []string) {
102102
continue
103103
}
104104

105-
s := padding.String(c.Name()+":", uint(c.NamePadding()+2)) + c.Short //nolint:gosec // Not relevant here.
105+
s := padding.String(c.Name()+":", uint(c.NamePadding()+2)) + c.Short
106106
if _, ok := c.Annotations["IsCore"]; ok {
107107
coreCommands = append(coreCommands, s)
108108
} else if _, ok := c.Annotations["IsManagement"]; ok {

tools/loggen/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"context"
55
"log/slog"
6-
"math/rand"
6+
"math/rand/v2"
77
"os"
88
"os/signal"
99
"syscall"
@@ -46,7 +46,7 @@ func main() {
4646
logger.InfoContext(ctx, "Starting log generator", attrs)
4747

4848
for {
49-
r := rand.Intn(1000) + 1 //nolint:gosec // not used for security purposes
49+
r := rand.IntN(1000) + 1 //nolint:gosec // not used for security purposes
5050
select {
5151
case <-ctx.Done():
5252
return

0 commit comments

Comments
 (0)