Skip to content

Commit 23c831a

Browse files
committed
remove pre-go1.17 build-tags, and fix missing build-tags in plugin
The plugin package did not have build-tags, but imported the main module, which only is supported on linux and freebsd. As a result, golangci-lint would fail on other platforms: INFO [runner] linters took 3.644851708s with stages: goanalysis_metalinter: 3.634862583s plugin/plugin.go:25:2: could not import github.com/containerd/zfs (-: build constraints exclude all Go files in ) (typecheck) "github.com/containerd/zfs" Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent e5acd95 commit 23c831a

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

plugin/plugin.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build linux || freebsd
2+
13
/*
24
Copyright The containerd Authors.
35

zfs.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build linux || freebsd
2-
// +build linux freebsd
32

43
/*
54
Copyright The containerd Authors.

zfs_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build linux
2-
// +build linux
32

43
/*
54
Copyright The containerd Authors.

0 commit comments

Comments
 (0)