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

the code source default is $GOROOT. whether the code source path can be specified by the user when using gocov convert? #93

Open
RunningSnail999 opened this issue Jun 7, 2022 · 3 comments

Comments

@RunningSnail999
Copy link

No description provided.

@RunningSnail999 RunningSnail999 changed the title the code source default is $GOROOT. whether the code source path can be specified by the user? the code source default is $GOROOT. whether the code source path can be specified by the user when using gocov convert? Jun 7, 2022
@axw
Copy link
Owner

axw commented Jun 8, 2022

@RunningSnail999 what's the use case? Are you running the tests on one machine, and converting the output on another machine?

@caifutong
Copy link

@RunningSnail999 what's the use case? Are you running the tests on one machine, and converting the output on another machine?

yes,converting the output on another machine and then I get error:
error: can't find "xxx.go": cannot find package "xx/xxxx/xx/app/rest" in any of:
/root/.go/src/xx/xxxx/xx/app/rest (from $GOROOT)
/root/go/src/xx/xxxx/xx/app/rest (from $GOPATH)

@axw
Copy link
Owner

axw commented Jun 5, 2023

@caifutong understood. There's no way to do this at the moment. If you would like to contribute an enhancement, I will review it when I have some spare time.

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

3 participants