Skip to content

Conversation

svanharmelen
Copy link
Member

@svanharmelen svanharmelen commented Jul 3, 2018

Besides that using dot imports isn’t really idiomatic Go, in this case it actually breaks when using Go 1.11 as it introduces a new Pointer type to the syscall package: https://golang.org/cl/106275

And since the unsafe package also contains a Pointer type, this now gives an error:

-: Pointer redeclared in this block

Not using dot imports for these packages solves that problem. (fixes #2)

Besides that using dot imports isn’t really idiomatic Go, in this case it actually breaks when using Go 1.11

Go 1.11 introduces a new `Pointer` type to the `syscall` package: https://golang.org/cl/106275 And since the `unsafe` package also contains a `Pointer` type, this now gives an error: `-: Pointer redeclared in this block`

Not using dot imports for these packages solves that problem.
@svanharmelen svanharmelen merged commit 640f0ab into master Jul 3, 2018
@svanharmelen svanharmelen deleted the b-go-1.11 branch July 3, 2018 18:17
ellismg added a commit to pulumi/pulumi that referenced this pull request Aug 29, 2018
Pick up a newer version of ssh-agent which has
xanzy/ssh-agent#3 to fix go 1.11 build issues.

Also, lock AppVeyor back to go 1.9, like we use on Travis.
ellismg added a commit to pulumi/pulumi that referenced this pull request Aug 30, 2018
Pick up a newer version of ssh-agent which has
xanzy/ssh-agent#3 to fix go 1.11 build issues.

Also, lock AppVeyor back to go 1.9, like we use on Travis.
ellismg added a commit to pulumi/pulumi that referenced this pull request Aug 30, 2018
Pick up a newer version of ssh-agent which has
xanzy/ssh-agent#3 to fix go 1.11 build issues.

Also, lock AppVeyor back to go 1.9, like we use on Travis.
ellismg added a commit to pulumi/pulumi that referenced this pull request Aug 30, 2018
Pick up a newer version of ssh-agent which has
xanzy/ssh-agent#3 to fix go 1.11 build issues.

Also, lock AppVeyor back to go 1.9, like we use on Travis.
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.

compile failures
1 participant