forked from Ivasoft/objectivefs-docker-volume
Upgrade to Go 1.21 to have slices
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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
2
go.mod
@@ -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
|
||||||
|
|||||||
2
main.go
2
main.go
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user