-
Notifications
You must be signed in to change notification settings - Fork 67
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 Windows' Readlink fork #151
Conversation
Signed-off-by: Kir Kolyshkin <[email protected]>
The next commit requires go 1.13 for Windows, so let's guard against building this package with earlier golang releases. Note that since go 1.14 is out, go 1.12 is no longer supported. Signed-off-by: Kir Kolyshkin <[email protected]>
This reverts the part of commit 8100e75 (PR containerd#113) that added the fork of Readlink() for Windows. At that time the fork was done to work around the bug in golang's implementation of os.Readlink() for Windows. The above bug was never reported upstream, but fortunately it was independently found, reported [1], and fixed [2]. The fix made its way into go-1.13 (there is no mention of that in release notes, so I checked it in git history). [1] golang/go#30463 [2] https://go-review.googlesource.com/c/go/+/164201 Signed-off-by: Kir Kolyshkin <[email protected]>
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.
LGTM
@cpuguy83 PTAL |
I like the change but I'm not sure I like that we are dropping go1.12 support so quickly. |
so when this change is disruptive, it means someone is using an unsupported golang release |
Understood that go1.12 is no longer a supported release from the go team, but we still use this in docker 19.03 (for now). |
So this one is blocked by moby/moby#40592 |
@cpuguy83 we just stopped doing it :) PTAL |
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.
LGTM
LGTM |
This reverts the part of commit 8100e75 (PR #113)
that added the fork of
Readlink()
for Windows.At that time the fork was done to work around the bug
in golang's implementation of
os.Readlink()
for Windows.The above bug was never reported upstream, but fortunately
it was independently found, reported [1], and fixed [2].
The fix made its way into go-1.13 (there is no mention of
that in release notes, so I checked it in git history).
[1] golang/go#30463
[2] https://go-review.googlesource.com/c/go/+/164201
PS since this requires go 1.13 now, add the appropriate guard
so the package won't compile on earlier golang