New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove dependency on github.com/pkg/errors #113627
Comments
/area code-organization |
/kind cleanup |
this is only partially true, e.g. %w does not provide stack traces |
/assign |
@BenTheElder I see. Should we close this issue then? |
I think it depends on how it's being used. If the traces are not the goal then we can do a simple substitution. It's probably best to drop read only dependencies ASAP but it's worth noting that if we depended on the full functionality in any way we'll need a more complex replacement (KIND did/does, not sure about k/k) |
k/k git log suggests that some cleanup has already been done in the past (maybe in other commits too):
This issue triggered 3 PRs and 2 of them are merged.
there does not seem to be calls to |
for cmd/kubeadm in kubernetes/kubernetes we decided to not drop usage of pkg/errors even if it's a deprecated project. prior ticket and comments are here |
1 similar comment
for cmd/kubeadm in kubernetes/kubernetes we decided to not drop usage of pkg/errors even if it's a deprecated project. prior ticket and comments are here |
I see. Added a note. |
is it still open ? |
|
On place left in
Except the k/k repo, as kubernetes/hack/unwanted-dependencies.json Lines 94 to 115 in a8fc2c6
|
/reopen |
@pacoxu: Reopened this issue. In response to this:
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/test-infra repository. |
@alculquicondor: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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/test-infra repository. |
to remove dependency you can use the standard Go error package or creating your own handling package, this could contain custom functions for generating and handling errors. |
let me work on this issue now please |
We are in code freeze. I suggest waiting for a couple of weeks. |
Hello, is this still up? |
Let's get this going |
/assign |
@tillknuesting @pacoxu Just opened a PR for this issue |
/assign |
kubernetes/hack/unwanted-dependencies.json Lines 170 to 187 in 4f303d1
Update the remaining todo items. |
/sig architecture |
/assign |
Hey @ArjunMenon-bit! |
Is this issue really still open? Am I missing something? |
/close |
@alculquicondor: Closing this issue. In response to this:
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/test-infra repository. |
Why is this needed?
The functionality that the package provides is already present in golang's builtin errors (using
%w
infmt.Errof
) and the github repo is now read-only./kind cleanup
/priority backlog
/good-first-issue
Notes to people that want to collaborate
Avoid creating a single PR for the entire repo. Create multiple PRs, each targeting a specific SIG.
Do not submit PRs for
cmd/kubeadm
The text was updated successfully, but these errors were encountered: