Skip to content

Commit

Permalink
remove pre-go1.17 build-tags, and fix missing build-tags in plugin
Browse files Browse the repository at this point in the history
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 <github@gone.nl>
  • Loading branch information
thaJeztah committed May 24, 2023
1 parent e5acd95 commit 23c831a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions plugin/plugin.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build linux || freebsd

/*
Copyright The containerd Authors.
Expand Down
1 change: 0 additions & 1 deletion zfs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux || freebsd
// +build linux freebsd

/*
Copyright The containerd Authors.
Expand Down
1 change: 0 additions & 1 deletion zfs_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build linux
// +build linux

/*
Copyright The containerd Authors.
Expand Down

0 comments on commit 23c831a

Please sign in to comment.