-
Notifications
You must be signed in to change notification settings - Fork 202
Pointer: Add generic Pointer func #239
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
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: alvaroaleman The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
11147c1
to
3f934fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we'll need to update the golangci-lint
version and explicitly mention 1.18
:
docker run --rm -v `pwd`:/go/src/k8s.io/klog -w /go/src/k8s.io/klog \
golangci/golangci-lint:v1.45.0 golangci-lint run --go 1.18 --disable-all -v \
-E govet -E misspell -E gofmt -E ineffassign -E golint
See golangci/golangci-lint#2649 for more details.
does this require all consumers of k8s.io/utils to set |
3f934fd
to
aa50cf5
Compare
aa50cf5
to
e3ca7f6
Compare
This adds a new, generic pointer func to the pointer package.
e3ca7f6
to
725de25
Compare
@thockin the tests in ./internal/third_party/forked/golang/net do not pass on go versions > 1.16. Is this known? Can you have a look? The problem is that the test calls I've added a commit that uses a downstream IPUnmarshalText but I think you should have a look and check what exactly is expected here. |
@liggitt I just tested, it works fine when the importing project sets go 1.17 but using a go 1.18 compiler...Out of curiosity, why do we care? So importing projects that do not use this package can still use an older compiler? |
725de25
to
c6efb67
Compare
changing go.mod to 1.17+ messes up the require directives in ways that break our dependency analysis tooling (xref golang/go#47648) |
also, we don't tag versions of k8s.io/utils and maintain multiple branches, so I probably wouldn't expect us to start using go1.18 features until go1.18 was the oldest supported go version (when go1.19 is released) |
I am sorry the PR has so many unrelated changes now, all of them are fallout from updating the go version:
|
Just passing by, but can you consider the following changes, please?
|
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
@alvaroaleman: PR needs rebase. 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. |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. 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. |
This adds a new, generic pointer func to the pointer package.
What type of PR is this?
/kind api-change
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: