Skip to content

Handle pointers that are now integers in Go 1.10 (fixes #135)#136

Merged
rjeczalik merged 1 commit into
rjeczalik:masterfrom
calmh:go110
Dec 10, 2017
Merged

Handle pointers that are now integers in Go 1.10 (fixes #135)#136
rjeczalik merged 1 commit into
rjeczalik:masterfrom
calmh:go110

Conversation

@calmh
Copy link
Copy Markdown
Contributor

@calmh calmh commented Dec 9, 2017

The Core Services reference types became integer shaped after being
pointer shaped in Go 1.9. I moved the thing out into a constant zero or
nil variable according to the Go version, in order to avoid duplicating
a bunch of code into separate files.

This is the required fix according to
https://go-review.googlesource.com/c/go/+/66332.

This passes tests with Go 1.9.2. and 1.10beta1.

The Core Services reference types became integer shaped after being
pointer shaped in Go 1.9. I moved the thing out into a constant zero or
nil variable according to the Go version, in order to avoid duplicating
a bunch of code into separate files.

This is the required fix according to
https://go-review.googlesource.com/c/go/+/66332.

This passes tests with Go 1.9.2. and 1.10beta1.
@calmh
Copy link
Copy Markdown
Contributor Author

calmh commented Dec 9, 2017

Windows test failure doesn't look related to this change.

@calmh
Copy link
Copy Markdown
Contributor Author

calmh commented Dec 9, 2017

I have no idea how to interpret the travis test failure.

@rjeczalik
Copy link
Copy Markdown
Owner

@calmh I'll run the tests manually on a windows box just to confirm. I think I've observed those timeouts previously, did not reproduce them outside the ci environment.

@calmh
Copy link
Copy Markdown
Contributor Author

calmh commented Dec 9, 2017

Yeah. Changes are build tagged for darwin only.

@rjeczalik
Copy link
Copy Markdown
Owner

Thanks @calmh! We'll need to figure out more graceful timeouts for Windows on AppVeyor, so the tests are less flaky.

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.

3 participants