Skip to content
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 version 2.6.2, config cannot be imported after cross compilation #3388

Open
HusenHuang opened this issue Mar 15, 2024 · 2 comments
Open
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.

Comments

@HusenHuang
Copy link

gfcli:
  build:
    name:     "gf"
    arch:     "arm64"
    system:   "linux"
    mod:      "none"
    packSrc:  "resource,manifest"
    version:  "v1.0.0"
    output:   "./bin"
    extra:    ""

image

使用gres.Dump()查看打包后的文件,显示 TOTAL FILES: 0

@HusenHuang HusenHuang added the bug It is confirmed a bug, but don't worry, we'll handle it. label Mar 15, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


gfcli:
  build:
    name: "gf"
    arch: "arm64"
    system: "linux"
    mod: "none"
    packSrc: "resource,manifest"
    version: "v1.0.0"
    output: "./bin"
    extra: ""

image

Use gres.Dump() to view the packaged files, showing TOTAL FILES: 0

@Issues-translate-bot Issues-translate-bot changed the title gf版本2.6.2,交叉编译后config引不进来 gf version 2.6.2, config cannot be imported after cross compilation Mar 15, 2024
@HusenHuang
Copy link
Author

(base) xiaohuangdeMacBook-Pro:edgebox huang$ gf build --debug=true
2024-03-15 17:30:07.997 [DEBU] /home/runner/work/gf/gf/cmd/gf/internal/cmd/cmd_build.go:148: build command input: {Meta:{} File: Name:edgebox Version:v1.0.0 Arch:arm64 System:linux Output: Path:./bin Extra: Mod:none Cgo:false VarMap:map[] PackSrc:manifest,resource PackDst:internal/packed/build_pack_data.go ExitWhenError:false DumpENV:false}
2024-03-15 17:30:07.998 /home/runner/work/gf/gf/cmd/gf/internal/cmd/cmd_build.go:227: gf pack manifest,resource internal/packed/build_pack_data.go --keepPath=true
2024-03-15 17:30:08.106 done!
2024-03-15 17:30:08.163 [DEBU] /home/runner/work/gf/gf/cmd/gf/internal/cmd/cmd_build.go:373: git log -1 --format="%cd %H" --date=format:"%Y-%m-%d %H:%M:%S"
2024-03-15 17:30:08.164 /home/runner/work/gf/gf/cmd/gf/internal/cmd/cmd_build.go:238: start building...
2024-03-15 17:30:08.164 [DEBU] /home/runner/work/gf/gf/cmd/gf/internal/cmd/cmd_build.go:328: build for GOOS=linux GOARCH=arm64
2024-03-15 17:30:08.164 [DEBU] /home/runner/work/gf/gf/cmd/gf/internal/cmd/cmd_build.go:329: go build -o ./bin/v1.0.0/linux_arm64/edgebox -ldflags "-X 'github.com/gogf/gf/v2/os/gbuild.builtInVarStr=eyJidWlsdEdpdCI6IjIwMjQtMDMtMTUgMTc6MjM6NTggMGQzMDM4NTBjYzE2YWE5Y2M0NWZkZjQ5YjFjNjczYjNlYWNjNTVlNiIsImJ1aWx0VGltZSI6IjIwMjQtMDMtMTUgMTc6MzA6MDgiLCJidWlsdFZlcnNpb24iOiJ2MS4wLjAifQ=='" main.go
2024-03-15 17:30:08.164 /home/runner/work/gf/gf/cmd/gf/internal/cmd/cmd_build.go:332: go build -o ./bin/v1.0.0/linux_arm64/edgebox main.go
2024-03-15 17:30:12.229 [DEBU] /home/runner/work/gf/gf/cmd/gf/internal/cmd/cmd_build.go:343:
2024-03-15 17:30:12.229 /home/runner/work/gf/gf/cmd/gf/internal/cmd/cmd_build.go:281: done!
2024-03-15 17:30:12.229 /home/runner/work/gf/gf/cmd/gf/internal/cmd/cmd_build.go:221: remove the automatically generated resource go file: internal/packed/build_pack_data.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.
Projects
None yet
Development

No branches or pull requests

2 participants