Golang Appengine project will not build

I have an appengine project using golang that I haven't touched in about a year. I can’t get him to build now on the machine where it was built before. I get the following error:

go-app-builder: Parsing failed: parser: failed import "syscall" to src / golang.org / x / net / internal / nettest / rlimit_unix.go

I work on OS X, if that helps at all. I am not an expert in the Golan, and all my attempts to find something, even related to it, have not changed anything. Any thoughts?

+2
source share
2 answers

This is use in net / internal. You are likely to import the network into your project with the application engine and, thus, perform illegal import.

If you are limiting your use of net / http in your application engine project, you should be fine.

+1
source

I think the problem is this:

You are not allowed to import the syscall package into the Google App Engine application for security reasons. Whatever file is imported, it must be modified so as not to do this, or be excluded from the assembly.

according to this

So you can try this workaround . If you import the os module. He corrects this

It would be helpful if you could post your code too.

0
source

Source: https://habr.com/ru/post/1237611/


All Articles