-
Notifications
You must be signed in to change notification settings - Fork 752
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
run test pass ldflags not work with --ldflags -r=/home/xxxx/go/src/program/clib #3025
Comments
run test doesn't work,however 'debug test' works also the same cmd works in bash shell,so i think it may a bug |
may be caused by different param handle of 'debug test' and 'run test' |
Can you also try |
works for both 'debug test' and 'run test' |
Thanks. Then let's close this as a dupe of #1831 |
👍👍 |
What version of Go, VS Code & VS Code Go extension are you using?
go version go1.21.3 linux/amd64
golang.org/x/tools/gopls v0.13.2
golang.org/x/tools/[email protected] h1:Pyvx6MKvatbX3zzZmdGiFRfQZl0ohPlt2sFxO/5j6Ro=
vscode
Share the Go related settings you have added/edited
Run
Preferences: Open Settings (JSON)
command to open your settings.json file.Share all the settings with the
go.
or["go"]
orgopls
prefixes.Describe the bug
my project needs a .so to work,it works with cmd like this in bash shell,however with button 'run test' above tests it doesn't
go test -timeout 30s -tags linux -run ^TestGenCode$ program --ldflags -r=/home/xxxx/go/src/program/clib
err:
Steps to reproduce the behavior:
Screenshots or recordings
The text was updated successfully, but these errors were encountered: