From 82c5efdf91ff361e504bc76ef169a4b9cf21b01a Mon Sep 17 00:00:00 2001 From: smcavallo Date: Fri, 18 Oct 2024 17:26:54 -0400 Subject: [PATCH] Update to golang 1.22 and latest go.mod deps (#48) Signed-off-by: smcavallo --- Dockerfile | 2 +- go.mod | 4 ++-- go.sum | 4 ++-- main.go | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index acaa1f8..ebdb94b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Dockerfile -FROM golang:1.21.2 as base +FROM golang:1.22 as base RUN adduser \ --disabled-password \ diff --git a/go.mod b/go.mod index 53c0205..6aeed39 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module cbi-oi-kubecost-exporter -go 1.21 +go 1.22 -require github.com/caarlos0/env/v7 v7.1.0 +require github.com/caarlos0/env/v11 v11.1.0 diff --git a/go.sum b/go.sum index 0739989..d94410b 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -github.com/caarlos0/env/v7 v7.1.0 h1:9lzTF5amyQeWHZzuZeKlCb5FWSUxpG1js43mhbY8ozg= -github.com/caarlos0/env/v7 v7.1.0/go.mod h1:LPPWniDUq4JaO6Q41vtlyikhMknqymCLBw0eX4dcH1E= +github.com/caarlos0/env/v11 v11.1.0 h1:a5qZqieE9ZfzdvbbdhTalRrHT5vu/4V1/ad1Ka6frhI= +github.com/caarlos0/env/v11 v11.1.0/go.mod h1:LwgkYk1kDvfGpHthrWWLof3Ny7PezzFwS4QrsJdHTMo= diff --git a/main.go b/main.go index d71f294..d7aed4d 100644 --- a/main.go +++ b/main.go @@ -20,7 +20,7 @@ import ( "strings" "time" - "github.com/caarlos0/env/v7" + "github.com/caarlos0/env/v11" ) type (