Skip to content

'syscall' package cant use GAE/Go. #944

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

Closed
LosPas opened this issue Apr 3, 2019 · 7 comments
Closed

'syscall' package cant use GAE/Go. #944

LosPas opened this issue Apr 3, 2019 · 7 comments

Comments

@LosPas
Copy link

LosPas commented Apr 3, 2019

Issue description

Thank you for always for your kind support.

my product use GAE/Go.
GAE/Go not allow 'syscall' package.
#934 change contained using 'syscall'.

I would appreciate it if you could fix this issue.

Error Log

go-app-builder: Failed parsing input: parser: bad import "syscall" in github.com/go-sql-driver/mysql/conncheck.go
@Marc3001
Copy link

Marc3001 commented Apr 3, 2019

We are seeing same kind of issue on our side with this error when trying to compile a project depending on mysql go connector

go-sql-driver/mysql/conncheck.go:29: undefined: syscall.Conn

We are using go 1.8.5.

@methane
Copy link
Member

methane commented Apr 4, 2019

@Marc3001 #869

@LosPas
Copy link
Author

LosPas commented Apr 5, 2019

FYI
When used with GAE/Go, it is not permitted regardless of the go version.
Because Google App Engine doesn't allow to import syscall for security reason.

The majority of pure Go packages work on Google App Engine. A package may not work >because of one of these reasons:

  • The package imports syscall or unsafe.
  • The package uses cgo or assembly.
  • The package requires functions in packages that are locked down, such as writing to disk, or direct network access.

In https://cloud.google.com/appengine/kb/, I could find those restrictions.

@methane
Copy link
Member

methane commented Apr 5, 2019

When used with GAE/Go, it is not permitted regardless of the go version.

No. This issue is specific to Go 1.9 runtime.

Go 1.11 and 1.12beta runtime uses 2nd generation GAE.
It allows importing any package.

@methane
Copy link
Member

methane commented Apr 5, 2019

Of course, we support Go 1.9 in master branch yet and this is a bug.

@methane methane mentioned this issue Apr 5, 2019
5 tasks
@methane
Copy link
Member

methane commented Apr 5, 2019

@LosPas Please try #950.
I am not AppEngine user. So I can not test it.

@LosPas
Copy link
Author

LosPas commented Apr 12, 2019

@methane
I'm sorry for the delay in my reply.
I confirmed there are working correctly.
You've done a great job. Thanks!

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

No branches or pull requests

3 participants