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

flag provided but not defined: -w #1045

Open
muyuballs opened this issue Jan 17, 2020 · 1 comment
Open

flag provided but not defined: -w #1045

muyuballs opened this issue Jan 17, 2020 · 1 comment

Comments

@muyuballs
Copy link
Contributor

muyuballs commented Jan 17, 2020

ubuntu 19.10
Go 1.13.5
Qt 5.13.0
ERRO[0015] failed to run command  _func=RunCmd cmd="bash -c /opt/go/bin/go build -p 4 -v -trimpath -o xxx -tags=minimal -ldflags=all=\"-s\" \"-w\"" 
....
flag provided but not defined: -w

-w flag is lonely

cmd.Args = append(cmd.Args, fmt.Sprintf("-ldflags=%v%v", pattern, escapeFlags(ldFlags, ldFlagsCustom)))

cmd.Args = append(cmd.Args, fmt.Sprintf("-ldflags=%v%v", pattern, escapeFlags(ldFlags, ldFlagsCustom)))

escapedFlags might need '' like this:

cmd.Args = append(cmd.Args, fmt.Sprintf("-ldflags=%v'%v'", pattern, escapeFlags(ldFlags, ldFlagsCustom)))

@therecipe

@domust
Copy link

domust commented Jan 20, 2020

Hi, I've also came across this exact problem. What was the reason for closing the pull request without merging? Was the implementation lacking in some way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants