diff --git a/Makefile b/Makefile index d646e3d..b4d6919 100644 --- a/Makefile +++ b/Makefile @@ -31,8 +31,8 @@ VERSION ?= $(shell $(GIT) describe --match 'v[0-9]*' --dirty='.m' --always --tag VERSION_TRIMMED := $(VERSION:v%=%) REVISION ?= $(shell $(GIT) rev-parse HEAD)$(shell if ! $(GIT) diff --no-ext-diff --quiet --exit-code; then $(ECHO) .m; fi) -PKG_MAIN := github.com/containerd/fuse-overlayfs-snapshotter/cmd/$(TARGET_BIN) -PKG_VERSION := github.com/containerd/fuse-overlayfs-snapshotter/cmd/$(TARGET_BIN)/version +PKG_MAIN := github.com/containerd/fuse-overlayfs-snapshotter/v2/cmd/$(TARGET_BIN) +PKG_VERSION := github.com/containerd/fuse-overlayfs-snapshotter/v2/cmd/$(TARGET_BIN)/version export GO_BUILD=GO111MODULE=on CGO_ENABLED=0 $(GO) build -ldflags "-s -w -X $(PKG_VERSION).Version=$(VERSION) -X $(PKG_VERSION).Revision=$(REVISION)" diff --git a/README.md b/README.md index 15648af..2708607 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Choose 1 if you don't mind recompiling containerd, otherwise choose 2. ### Option 1: Embed `fuse-overlayfs` plugin into the containerd binary -Create `builtins_fuseoverlayfs_linux.go` under [`$GOPATH/src/github.com/containerd/containerd/cmd/containerd`](https://github.com/containerd/containerd/tree/master/cmd/containerd) +Create `builtins_fuseoverlayfs_linux.go` under [`$GOPATH/src/github.com/containerd/containerd/cmd/containerd/builtins`](https://github.com/containerd/containerd/tree/master/cmd/containerd/builtins) with the following content, and recompile the containerd binary: ```go @@ -45,7 +45,7 @@ with the following content, and recompile the containerd binary: package main -import _ "github.com/containerd/fuse-overlayfs-snapshotter/plugin" +import _ "github.com/containerd/fuse-overlayfs-snapshotter/v2/plugin" ``` No extra configuration is needed. diff --git a/cmd/containerd-fuse-overlayfs-grpc/main.go b/cmd/containerd-fuse-overlayfs-grpc/main.go index aee5dd3..35f674a 100644 --- a/cmd/containerd-fuse-overlayfs-grpc/main.go +++ b/cmd/containerd-fuse-overlayfs-grpc/main.go @@ -24,8 +24,8 @@ import ( snapshotsapi "github.com/containerd/containerd/api/services/snapshots/v1" "github.com/containerd/containerd/v2/contrib/snapshotservice" - fuseoverlayfs "github.com/containerd/fuse-overlayfs-snapshotter" - "github.com/containerd/fuse-overlayfs-snapshotter/cmd/containerd-fuse-overlayfs-grpc/version" + fuseoverlayfs "github.com/containerd/fuse-overlayfs-snapshotter/v2" + "github.com/containerd/fuse-overlayfs-snapshotter/v2/cmd/containerd-fuse-overlayfs-grpc/version" "github.com/containerd/log" sddaemon "github.com/coreos/go-systemd/v22/daemon" "google.golang.org/grpc" diff --git a/go.mod b/go.mod index 7df3454..d2cfe8c 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/containerd/fuse-overlayfs-snapshotter +module github.com/containerd/fuse-overlayfs-snapshotter/v2 go 1.22.0 diff --git a/plugin/plugin.go b/plugin/plugin.go index ebaf028..368f392 100644 --- a/plugin/plugin.go +++ b/plugin/plugin.go @@ -23,7 +23,7 @@ import ( "errors" "github.com/containerd/containerd/v2/plugins" - fuseoverlayfs "github.com/containerd/fuse-overlayfs-snapshotter" + fuseoverlayfs "github.com/containerd/fuse-overlayfs-snapshotter/v2" "github.com/containerd/platforms" "github.com/containerd/plugin" "github.com/containerd/plugin/registry"