Skip to content
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

Merged
merged 3 commits into from
Apr 13, 2020

Conversation

kolyshkin
Copy link
Contributor

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

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]>
Copy link
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kolyshkin
Copy link
Contributor Author

@crosbymichael @estesp @dmcgowan PTAL

@kolyshkin
Copy link
Contributor Author

@cpuguy83 PTAL

@cpuguy83
Copy link
Member

I like the change but I'm not sure I like that we are dropping go1.12 support so quickly.

@kolyshkin
Copy link
Contributor Author

I like the change but I'm not sure I like that we are dropping go1.12 support so quickly.

  1. this is windows only
  2. go 1.12 is an unsupported release 💀 anyway, since 1.14 is out

so when this change is disruptive, it means someone is using an unsupported golang release

@cpuguy83
Copy link
Member

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).

@kolyshkin
Copy link
Contributor Author

So this one is blocked by moby/moby#40592

@kolyshkin
Copy link
Contributor Author

we still use this in docker 19.03 (for now).

@cpuguy83 we just stopped doing it :) PTAL

Copy link
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@crosbymichael
Copy link
Member

LGTM

@crosbymichael crosbymichael merged commit d3ef23f into containerd:master Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants