File tree Expand file tree Collapse file tree 17 files changed +84
-54
lines changed Expand file tree Collapse file tree 17 files changed +84
-54
lines changed Original file line number Diff line number Diff line change 99
99
verify : verify-gofmt verify-bom verify-lint verify-dep verify-shellcheck verify-goword \
100
100
verify-govet verify-license-header verify-mod-tidy \
101
101
verify-shellws verify-proto-annotations verify-genproto verify-yamllint \
102
- verify-govet-shadow verify-markdown-marker verify-go-versions
102
+ verify-govet-shadow verify-markdown-marker verify-go-versions verify-gomodguard
103
103
104
104
.PHONY : fix
105
105
fix : fix-bom fix-lint fix-yamllint sync-toolchain-directive
@@ -233,6 +233,10 @@ clean:
233
233
verify-go-versions :
234
234
./scripts/verify_go_versions.sh
235
235
236
+ .PHONY : verify-gomodguard
237
+ verify-gomodguard :
238
+ PASSES=" gomodguard" ./scripts/test.sh
239
+
236
240
.PHONY : sync-toolchain-directive
237
241
sync-toolchain-directive :
238
242
./scripts/sync_go_toolchain_directive.sh
Original file line number Diff line number Diff line change
1
+ ---
2
+ blocked :
3
+ modules :
4
+ - go.etcd.io/etcd :
5
+ reason : " Forbidden dependency"
6
+ - go.etcd.io/etcd/api/v3 :
7
+ reason : " Forbidden dependency"
8
+ - go.etcd.io/etcd/pkg/v3 :
9
+ reason : " Forbidden dependency"
10
+ - go.etcd.io/etcd/tests/v3 :
11
+ reason : " Forbidden dependency"
12
+ - go.etcd.io/etcd/v3 :
13
+ reason : " Forbidden dependency"
Original file line number Diff line number Diff line change @@ -26,13 +26,3 @@ require (
26
26
google.golang.org/genproto/googleapis/rpc v0.0.0-20250825161204-c5933d9347a5 // indirect
27
27
gopkg.in/yaml.v3 v3.0.1 // indirect
28
28
)
29
-
30
- // Bad imports are sometimes causing attempts to pull that code.
31
- // This makes the error more explicit.
32
- replace (
33
- go.etcd.io/etcd => ./FORBIDDEN_DEPENDENCY
34
- go.etcd.io/etcd/api/v3 => ./FORBIDDEN_DEPENDENCY
35
- go.etcd.io/etcd/pkg/v3 => ./FORBIDDEN_DEPENDENCY
36
- go.etcd.io/etcd/tests/v3 => ./FORBIDDEN_DEPENDENCY
37
- go.etcd.io/etcd/v3 => ./FORBIDDEN_DEPENDENCY
38
- )
Original file line number Diff line number Diff line change
1
+ ---
2
+ blocked :
3
+ modules :
4
+ - go.etcd.io/etcd :
5
+ reason : " Forbidden dependency"
6
+ - go.etcd.io/etcd/pkg/v3 :
7
+ reason : " Forbidden dependency"
8
+ - go.etcd.io/etcd/tests/v3 :
9
+ reason : " Forbidden dependency"
10
+ - go.etcd.io/etcd/v3 :
11
+ reason : " Forbidden dependency"
Original file line number Diff line number Diff line change @@ -46,12 +46,3 @@ replace (
46
46
go.etcd.io/etcd/api/v3 => ../../api
47
47
go.etcd.io/etcd/client/pkg/v3 => ../pkg
48
48
)
49
-
50
- // Bad imports are sometimes causing attempts to pull that code.
51
- // This makes the error more explicit.
52
- replace (
53
- go.etcd.io/etcd => ./FORBIDDEN_DEPENDENCY
54
- go.etcd.io/etcd/pkg/v3 => ./FORBIDDEN_DEPENDENCY
55
- go.etcd.io/etcd/v3 => ./FORBIDDEN_DEPENDENCY
56
- go.etcd.io/tests/v3 => ./FORBIDDEN_DEPENDENCY
57
- )
Original file line number Diff line number Diff line change
1
+ ---
2
+ blocked :
3
+ modules :
4
+ - go.etcd.io/etcd :
5
+ reason : " Forbidden dependency"
6
+ - go.etcd.io/etcd/tests/v3 :
7
+ reason : " Forbidden dependency"
8
+ - go.etcd.io/etcd/v3 :
9
+ reason : " Forbidden dependency"
Original file line number Diff line number Diff line change @@ -54,11 +54,3 @@ replace (
54
54
go.etcd.io/etcd/client/v3 => ../client/v3
55
55
go.etcd.io/etcd/pkg/v3 => ../pkg
56
56
)
57
-
58
- // Bad imports are sometimes causing attempts to pull that code.
59
- // This makes the error more explicit.
60
- replace (
61
- go.etcd.io/etcd => ./FORBIDDEN_DEPENDENCY
62
- go.etcd.io/etcd/v3 => ./FORBIDDEN_DEPENDENCY
63
- go.etcd.io/tests/v3 => ./FORBIDDEN_DEPENDENCY
64
- )
Original file line number Diff line number Diff line change
1
+ ---
2
+ blocked :
3
+ modules :
4
+ - go.etcd.io/etcd :
5
+ reason : " Forbidden dependency"
6
+ - go.etcd.io/etcd/tests/v3 :
7
+ reason : " Forbidden dependency"
8
+ - go.etcd.io/etcd/v3 :
9
+ reason : " Forbidden dependency"
Original file line number Diff line number Diff line change @@ -12,14 +12,6 @@ replace (
12
12
go.etcd.io/etcd/server/v3 => ../server
13
13
)
14
14
15
- // Bad imports are sometimes causing attempts to pull that code.
16
- // This makes the error more explicit.
17
- replace (
18
- go.etcd.io/etcd => ./FORBIDDEN_DEPENDENCY
19
- go.etcd.io/etcd/v3 => ./FORBIDDEN_DEPENDENCY
20
- go.etcd.io/tests/v3 => ./FORBIDDEN_DEPENDENCY
21
- )
22
-
23
15
require (
24
16
github.com/coreos/go-semver v0.3.1
25
17
github.com/dustin/go-humanize v1.0.1
Original file line number Diff line number Diff line change
1
+ ---
2
+ blocked :
3
+ modules :
4
+ - go.etcd.io/etcd :
5
+ reason : " Forbidden dependency"
6
+ - go.etcd.io/etcd/api/v3 :
7
+ reason : " Forbidden dependency"
8
+ - go.etcd.io/etcd/tests/v3 :
9
+ reason : " Forbidden dependency"
10
+ - go.etcd.io/etcd/v3 :
11
+ reason : " Forbidden dependency"
You can’t perform that action at this time.
0 commit comments