-
Notifications
You must be signed in to change notification settings - Fork 923
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
bee pack -ba="-ldflags "-X "”两个引号问题 #812
Comments
有人可以处理这个问题么 |
你可以看看 bee pack 命令是怎么处理的,我觉得近期没时间处理这个 |
修改前的代码
可以做如下调整
问题原因是因为 |
可以直接发一个合并请求吗? |
Baihhh
pushed a commit
to Baihhh/bee
that referenced
this issue
Jul 5, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在执行一下命令是,有两个双引号,出现-X不识别问题
bee pack -be GOOS=windows -be GOARCH=amd64 -ba="-ldflags "-X 'main.BuildTime=$today' -X 'main.Version=$version'"" -a tmaiapp
以下是提醒
Z:\gowork\go1.17.4\pkg\tool\windows_amd64\link.exe: -X flag requires argument of the form importpath.name=value
2021/12/07 17:47:06 FATAL ▶ 0004 exit status 2
The text was updated successfully, but these errors were encountered: