Upgrade to Go 1.21 to have slices
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-10-03 19:28:00 +02:00
parent 5448555b8f
commit 3fed10ea16
3 changed files with 3 additions and 3 deletions

View File

@@ -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 WORKDIR /usr/local/src/objectivefs-docker-volume
COPY go.* ./ COPY go.* ./

2
go.mod
View File

@@ -1,6 +1,6 @@
module git.ivasoft.cz/sw/objectivefs-docker-volume module git.ivasoft.cz/sw/objectivefs-docker-volume
go 1.20 go 1.21
require ( require (
github.com/boltdb/bolt v1.3.1 github.com/boltdb/bolt v1.3.1

View File

@@ -24,6 +24,7 @@ import (
"os/user" "os/user"
"path" "path"
"path/filepath" "path/filepath"
"slices"
"strconv" "strconv"
"strings" "strings"
"sync" "sync"
@@ -32,7 +33,6 @@ import (
"github.com/boltdb/bolt" "github.com/boltdb/bolt"
"github.com/docker/go-plugins-helpers/volume" "github.com/docker/go-plugins-helpers/volume"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"golang.org/x/exp/slices"
) )
type ofsVolume struct { type ofsVolume struct {