mirror of https://github.com/k3s-io/k3s
Merge pull request #60901 from ixdy/client-go-bazel
Automatic merge from submit-queue (batch tested with PRs 60696, 60876, 60901, 60925, 60428). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
client-go/util/cert go_library shouldn't depend on testdata
**What this PR does / why we need it**: 981dd8dc66 (diff-eb996d3ca3a215d7d93faaaffb77dbd7)
accidentally added a testdata dependency on the go_library rule, rather than the go_test. This breaks vendoring of this rule into other bazel projects that prune out tests and testdata.
Only the unit test depends on testdata, so the BUILD file should reflect that, too.
x-ref https://github.com/kubernetes/test-infra/pull/6835#discussion_r173010769
**Release note**:
```release-note
NONE
```
cc @BenTheElder @krzyzacy
pull/8/head
commit
7543ddde4c
|
@ -24,9 +24,6 @@ go_library(
|
||||||
"io.go",
|
"io.go",
|
||||||
"pem.go",
|
"pem.go",
|
||||||
],
|
],
|
||||||
data = [
|
|
||||||
"testdata/dontUseThisKey.pem",
|
|
||||||
],
|
|
||||||
importpath = "k8s.io/client-go/util/cert",
|
importpath = "k8s.io/client-go/util/cert",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue