You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
......\golang.org\x\sys\windows\dll_windows.go:21:6: missing function body
......\golang.org\x\sys\windows\dll_windows.go:24:6: missing function body
2019/10/28 16:02:28 [ERRO] ============== Build failed ===================
Activity
TruthHun commentedon Mar 5, 2018
程序是用Go语言框架beego开发的,关于二次开发等相关文档手册,会争取在这段时间补全。
TruthHun commentedon Mar 5, 2018
先简单说下编译。
在配置了Go开发环境的前提下,先安装
bee工具:bee使用:https://beego.me/docs/install/bee.md使用以下方式进行拉取项目:
不用
git clone的方式,是为了避免项目存放路径不正确导致无法执行编译。然后执行以下命令:
接着执行
bee run,然后看看程序报错,提示缺少啥go包,再用go get的方式安装即可。aizaimenghuangu commentedon Mar 6, 2018
go get -v github.com/TruthHun/BookStack 会有如下提示,不知道是什么原因
github.com/TruthHun/BookStack (download)
package github.com/TruthHun/BookStack/models/store: cannot find package "github.com/TruthHun/BookStack/models/store" in any of:
/usr/local/Cellar/go/1.10/libexec/src/github.com/TruthHun/BookStack/models/store (from $GOROOT)
/usr/local/Cellar/go/1.10/src/github.com/TruthHun/BookStack/models/store (from $GOPATH)
TruthHun commentedon Mar 6, 2018
刚看了下,确实少了models/store目录下的源码,可能是在开发的时候忘记add里面的源码到git里面一起commit了,我今晚下班回去再重新push上来。更新上来之后再跟你说下,现在暂时先不要做二次开发,源码不完整,疏忽了,抱歉。
TruthHun commentedon Mar 6, 2018
现在已经把缺失的这两个代码文件更新上来了,是之前配置的
.gitignore导致的问题。你再重新试一下。aizaimenghuangu commentedon Mar 9, 2018
完美编译,感谢!同时附上 go get golang.org/x 包失败解决方法
tlchun commentedon Oct 28, 2019
2019/10/28 16:02:14 [INFO] Uses 'BookStack' as 'appname'
2019/10/28 16:02:14 [INFO] Initializing watcher...
2019/10/28 16:02:14 [TRAC] Directory(F:\GoProject\src\github.com\TruthHun\BookStack/commands)
2019/10/28 16:02:14 [TRAC] Directory(F:\GoProject\src\github.com\TruthHun\BookStack/commands/daemon)
2019/10/28 16:02:14 [TRAC] Directory(F:\GoProject\src\github.com\TruthHun\BookStack/commands/migrate)
2019/10/28 16:02:14 [TRAC] Directory(F:\GoProject\src\github.com\TruthHun\BookStack/conf)
2019/10/28 16:02:14 [TRAC] Directory(F:\GoProject\src\github.com\TruthHun\BookStack/controllers)
2019/10/28 16:02:14 [TRAC] Directory(F:\GoProject\src\github.com\TruthHun\BookStack/controllers/api)
2019/10/28 16:02:14 [TRAC] Directory(F:\GoProject\src\github.com\TruthHun\BookStack/graphics)
2019/10/28 16:02:14 [TRAC] Directory(F:\GoProject\src\github.com\TruthHun\BookStack)
2019/10/28 16:02:14 [TRAC] Directory(F:\GoProject\src\github.com\TruthHun\BookStack/models)
2019/10/28 16:02:14 [TRAC] Directory(F:\GoProject\src\github.com\TruthHun\BookStack/models/store)
2019/10/28 16:02:14 [TRAC] Directory(F:\GoProject\src\github.com\TruthHun\BookStack/oauth)
2019/10/28 16:02:14 [TRAC] Directory(F:\GoProject\src\github.com\TruthHun\BookStack/routers)
2019/10/28 16:02:14 [TRAC] Directory(F:\GoProject\src\github.com\TruthHun\BookStack/utils)
2019/10/28 16:02:14 [INFO] Start building...
github.com/TruthHun/gotil/mdtil
..\gotil\mdtil\md2html.go:9:9: undefined: blackfriday.Run
github.com/TruthHun/html2json/html2json
..\html2json\html2json\html2json.go:58:23: undefined: blackfriday.Run
golang.org/x/sys/windows
......\golang.org\x\sys\windows\dll_windows.go:21:6: missing function body
......\golang.org\x\sys\windows\dll_windows.go:24:6: missing function body
2019/10/28 16:02:28 [ERRO] ============== Build failed ===================
tlchun commentedon Oct 28, 2019
请问这个是什么原因引起的,谢谢
tlchun commentedon Oct 28, 2019
好像没生成数据库
aizaimenghuangu commentedon Nov 14, 2019
数据库通过命令行导入:./BookStack install
hugetiny commentedon Mar 12, 2020
go get -v github.com/TruthHun/BookStack
拉完没报错,但是目录是空的咋回事
chorylee commentedon Apr 9, 2020
这里的go语言环境,具体是哪个版本的golang,还是说对版本没有限制?
zhongyue1q commentedon Apr 18, 2020
您好,请问下这个问题怎么解决。
zhongyue1q commentedon Apr 18, 2020
@tlchun
请问这个问题怎么解决?
github.com/TruthHun/gotil/mdtil
..\gotil\mdtil\md2html.go:9:9: undefined: blackfriday.Run
github.com/TruthHun/html2json/html2json
..\html2json\html2json\html2json.go:58:23: undefined: blackfriday.Run
hike2008 commentedon Mar 12, 2021
!truth!hun/!book!stack@v1.3.1/controllers/AcountController.go:562:20: assignment mismatch: 2 variables but gocaptcha.NewCaptchaImage returns 1 values
!truth!hun/!book!stack@v1.3.1/controllers/BookController.go:1030:14: undefined: blackfriday.MarkdownCommon