Skip to content

Conversation

@ivanvc
Copy link
Member

@ivanvc ivanvc commented Oct 8, 2025

Based on the discussion from #20721, and from commit 2edb086. The forbidden dependency approach in the go.mod files was to avoid importing etcd v1. Therefore, if we want to prohibit this dependency across all files, we can keep it centralized in the golangci-lint configuration. Given that the v2 client is also deprecated, we can add it to the forbidden dependencies.

Follow up on the implementation from #20748.
Part of #18409.

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

Based on the discussion from etcd-io#20721, and from commit
2edb086. The forbidden dependency
approach in the `go.mod` files was to avoid importing etcd v1.
Therefore, if we want to prohibit this dependency across all files, we
can keep it centralized in the golangci-lint configuration. Given that
the v2 client is also deprecated, we can add it to the forbidden
dependencies.

Follow up on the implementation from etcd-io#20748.

Signed-off-by: Ivan Valdes <[email protected]>
@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ivanvc

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot
Copy link

@ivanvc: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-etcd-coverage-report 0be3353 link true /test pull-etcd-coverage-report

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@codecov
Copy link

codecov bot commented Oct 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.15%. Comparing base (e2f20f7) to head (0be3353).
⚠️ Report is 19 commits behind head on main.

Additional details and impacted files

see 18 files with indirect coverage changes

@@           Coverage Diff           @@
##             main   #20772   +/-   ##
=======================================
  Coverage   69.14%   69.15%           
=======================================
  Files         422      422           
  Lines       34819    34819           
=======================================
+ Hits        24077    24079    +2     
+ Misses       9346     9342    -4     
- Partials     1396     1398    +2     

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e2f20f7...0be3353. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ahrtr
Copy link
Member

ahrtr commented Oct 10, 2025

The forbidden dependency approach in the go.mod files was to avoid importing etcd v1.

This isn't true. We should also prevent dependency between some modules, i.e. go.etcd.io/etcd/api/v3 shouldn't depend on go.etcd.io/etcd/server/v3 etc.

@ivanvc
Copy link
Member Author

ivanvc commented Oct 10, 2025

@ahrtr, sounds good. Closing this pull request, then :)

/close

@k8s-ci-robot
Copy link

@ivanvc: Closed this PR.

In response to this:

@ahrtr, sounds good. Closing this pull request, then :)

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ivanvc ivanvc deleted the use-global-gomodguard branch October 10, 2025 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants