Skip to content

Commit 7505c3f

Browse files
committed
Replace hack/verify-no-patent.sh with depguard
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 2f9a4f6 commit 7505c3f

File tree

3 files changed

+4
-36
lines changed

3 files changed

+4
-36
lines changed

.github/workflows/project.yml

-2
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,3 @@ jobs:
3535
# https://github.com/cncf/foundation/blob/main/allowed-third-party-license-policy.md
3636
go-licenses-ignore: |
3737
github.com/multiformats/go-base36
38-
- run: ./hack/verify-no-patent.sh
39-
working-directory: src/github.com/containerd/nerdctl

.golangci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ linters-settings:
150150
desc: "pkg must not depend on viper"
151151
- pkg: "github.com/containerd/nerdctl/v2/cmd"
152152
desc: "pkg must not depend on any cmd files"
153+
no-patent:
154+
deny:
155+
- pkg: "github.com/hashicorp/golang-lru/arc/v2"
156+
desc: "patented (https://github.com/hashicorp/golang-lru/blob/arc/v2.0.7/arc/arc.go#L18)"
153157

154158
issues:
155159
max-issues-per-linter: 0

hack/verify-no-patent.sh

-34
This file was deleted.

0 commit comments

Comments
 (0)