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
gf build 生成linux二进制文件没有打包resource和config #1799
Comments
和#1721 这个一样,当初没有解决吗? |
请问要把静态文件和config文件打包进二进制文件,是不是先pack,然后在boot引用pakced目录,再打包才行?不然我发现直接build导致只是引用了resource和config的绝对路径,文件并没有打包进去 |
搞清楚了,和文档https://goframe.org/pages/viewpage.action?pageId=7301958 不同的是,gf build 命令每次都在根目录生成packed文件,而不是在internal/packed,所以打包的时候文件没有打包成功。是文档没更新还是bug? |
一样的问题,估计是文档没及时更新,https://goframe.org/pages/viewpage.action?pageId=7301958
|
@yzqdev 即使在main.go引入pack也不行呢
配置文件如下:
我的gf版本是:
|
@Rebellioncry @yzqdev @XiaobinZhao 大家好, |
@gqcn bug已经在最新版本 2.1.0-rc4解决了么?合入版本是哪一个呀?我使用了最新的 2.1.0-rc4, 问题依然存在。 |
1. What version of
Go
and system type/arch are you using?go version go1.17.3 windows/amd64
-->
2. What version of
GoFrame
are you using?GF Version: v2.0.6
3. Can this issue be re-produced with the latest release?
yes
4. What did you do?
gfcli:
build:
name: "hc-editor"
arch: "amd64"
system: "linux,windows"
path: "./bin"
pack: "manifest/config,resource"
5. What did you expect to see?
生成linux和windows可执行文件,内部打包了resource和config文件
6. What did you see instead?
linux二进制文件缺失config和resource,执行报错,windows可以执行
在运行gf build的时候在根目录生成packed文件夹和build_pack_data.go文件,不是在internal/packed,不知道为什么,是不是有bug?
The text was updated successfully, but these errors were encountered: