Golang Appengine项目不会建立 [英] Golang Appengine Project won't build

查看:107
本文介绍了Golang Appengine项目不会建立的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用golang的appengine项目,大概一年没有涉及到。我现在无法在它之前建造的机器上建立它。我收到以下错误:
$ b

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


go-app-builder:解析输入失败:parser:bad importsyscallin src / golang.org /x/net/internal/nettest/rlimit_unix.go

go-app-builder: Failed parsing input: parser: bad import "syscall" in src/golang.org/x/net/internal/nettest/rlimit_unix.go

如果有帮助,我在OS X上运行。我不是一个Golang的专家,我试图找到任何与此相关的事情都没有成功。任何想法?

I am running on OS X if that helps at all. I am not a Golang expert, by any stretch, and my attempts to find anything even related to this have all turned up nothing. Any thoughts?

推荐答案

这个用法在net / internal中。你可能在你的应用引擎项目的某个地方导入了网络,从而导致非法导入。

That usage is in net/internal. You are probably importing net in your app engine project someplace, and thus doing the illegal import.

如果你在应用引擎项目上将你的使用限制在net / http,你应该很好。

If you constrain your usage to net/http on an app engine project, you should be just fine.

这篇关于Golang Appengine项目不会建立的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆