From 3fed10ea1624af6dc372ba8a4648c513c66a959a Mon Sep 17 00:00:00 2001 From: Roman Vanicek Date: Thu, 3 Oct 2024 19:28:00 +0200 Subject: [PATCH] Upgrade to Go 1.21 to have slices --- Dockerfile | 2 +- go.mod | 2 +- main.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e5ad374..78317c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.20-bullseye AS builder +FROM golang:1.21-bullseye AS builder WORKDIR /usr/local/src/objectivefs-docker-volume COPY go.* ./ diff --git a/go.mod b/go.mod index 16fd8d2..9380dc1 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module git.ivasoft.cz/sw/objectivefs-docker-volume -go 1.20 +go 1.21 require ( github.com/boltdb/bolt v1.3.1 diff --git a/main.go b/main.go index fbec988..7d9d51c 100644 --- a/main.go +++ b/main.go @@ -24,6 +24,7 @@ import ( "os/user" "path" "path/filepath" + "slices" "strconv" "strings" "sync" @@ -32,7 +33,6 @@ import ( "github.com/boltdb/bolt" "github.com/docker/go-plugins-helpers/volume" log "github.com/sirupsen/logrus" - "golang.org/x/exp/slices" ) type ofsVolume struct {