Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants