Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
努力在windows上构建Gitea_Windows_Bash_Go_Gitea - Fatal编程技术网

努力在windows上构建Gitea

努力在windows上构建Gitea,windows,bash,go,gitea,Windows,Bash,Go,Gitea,我是托马斯。我有个问题。。。 所以我以前从来没有在go中编码过,但是我看到的越多,我就越喜欢它 呵呵,所以我发这篇文章的时候有点仓促,请原谅格式不好 我是新手,所以在复制了所需文件后,我不确定安装是如何工作的,我已经设法让Gitea启动并运行了 谢谢你的帮助。。。感谢Gitea和Golang 2019/04/04 15:39:03 routers/init.go:69:GlobalInit() [T] AppPath: C:/Users/Thomas/go/bin/gitea.exe 2019/

我是托马斯。我有个问题。。。 所以我以前从来没有在go中编码过,但是我看到的越多,我就越喜欢它

呵呵,所以我发这篇文章的时候有点仓促,请原谅格式不好

我是新手,所以在复制了所需文件后,我不确定安装是如何工作的,我已经设法让Gitea启动并运行了

谢谢你的帮助。。。感谢Gitea和Golang

2019/04/04 15:39:03 routers/init.go:69:GlobalInit() [T] AppPath: C:/Users/Thomas/go/bin/gitea.exe
2019/04/04 15:39:03 routers/init.go:70:GlobalInit() [T] AppWorkPath: C:/Users/Thomas/go/bin
2019/04/04 15:39:03 routers/init.go:71:GlobalInit() [T] Custom path: C:/Users/Thomas/go/bin/custom
2019/04/04 15:39:03 routers/init.go:72:GlobalInit() [T] Log path: C:/Users/Thomas/go/bin/log
2019/04/04 15:39:03 ...dules/setting/log.go:225:newLogService() [I] Gitea v1.9.0-dev built with go1.12.1
2019/04/04 15:39:03 ...dules/setting/log.go:265:newLogService() [I] Gitea Log Mode: Console(Console:info)
2019/04/04 15:39:03 ...les/setting/cache.go:42:newCacheService() [I] Cache Service Enabled
2019/04/04 15:39:03 ...s/setting/session.go:34:newSessionService() [I] Session Service Enabled
2019/04/04 15:39:03 routers/init.go:37:checkRunMode() [I] Run Mode: Development
panic: fail to set message file(en-US): open conf/locale/locale_en-US.ini: The system cannot find the path specified.

goroutine 1 [running]:
code.gitea.io/gitea/vendor/github.com/go-macaron/i18n.initLocales(0xc0001a0755, 0x0, 0x163622a, 0xb, 0xc0001717a0, 0x1644590, 0x12, 0xc0001ca160, 0x16, 0x16, ...)
        C:/Users/Thomas/go/src/code.gitea.io/gitea/vendor/github.com/go-macaron/i18n/i18n.go:57 +0x6f6
code.gitea.io/gitea/vendor/github.com/go-macaron/i18n.I18n(0xc00006c0c0, 0x1, 0x1, 0x0, 0x0)
        C:/Users/Thomas/go/src/code.gitea.io/gitea/vendor/github.com/go-macaron/i18n/i18n.go:158 +0xf4
code.gitea.io/gitea/routers/routes.NewMacaron(0xc000285040)
        C:/Users/Thomas/go/src/code.gitea.io/gitea/routers/routes/routes.go:165 +0x869
code.gitea.io/gitea/cmd.runWeb(0xc000285040, 0x0, 0x0)
        C:/Users/Thomas/go/src/code.gitea.io/gitea/cmd/web.go:125 +0xb5
code.gitea.io/gitea/vendor/github.com/urfave/cli.HandleAction(0x1418fa0, 0x1695ed0, 0xc000285040, 0xc00006e8a0, 0x0)
        C:/Users/Thomas/go/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/app.go:471 +0xb4
code.gitea.io/gitea/vendor/github.com/urfave/cli.(*App).Run(0xc0001684e0, 0xc000078170, 0x1, 0x1, 0x0, 0x0)
        C:/Users/Thomas/go/src/code.gitea.io/gitea/vendor/github.com/urfave/cli/app.go:246 +0x57b
main.main()
        C:/Users/Thomas/go/src/code.gitea.io/gitea/main.go:60 +0x42d

C:\Windows\system32>

谢谢!嗨,托马斯,欢迎你!恐怕你的问题有点“不是问题”。您只是转储了一些代码,对您想要实现的目标相当不精确。请查看并编辑您的问题。请记住:如果您认为不值得花时间创建一个好问题,为什么我们要花时间创建一个好答案?这看起来不像是生成错误,而是运行时错误,因为您缺少一个文件
conf/locale/locale\u en-US.ini
。请确保此文件包含正确的内容。谢谢您的帮助。。。。抱歉,我是新来的:)。虽然:html/模板:“主页”未定义,但我得到了这个。。。呵呵,谢谢你们。。。
MichaelA:
welcome! I'm afraid your question is Kind of "not a question".
You just dumped some Code and are rather unprecise on what you want to achieve.
Please have a look at stackoverflow.com/help/how-to-ask and edit your question. 
Keep in mind: If you don't think it is worth to invest some time into creating a 
good question, why should we invest time to create a good answer?
Volker :
This does not look like a build error but like a runtime error because you are 
missing a file conf/locale/locale_en-US.ini. Make sure to have this file with 
proper content.