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

gocov-xml is not able find *.go, and is throwing error: can't find <file>.go and panic: EOF #17

Open
abhijithda opened this issue Mar 11, 2023 · 0 comments

Comments

@abhijithda
Copy link
Contributor

gocov-xml is not able find *.go, and is throwing error: can't find *.go and panic: EOF.

NOTE: The issue is happening only in build. If I run the same thing in codespaces, it's working fine.

Here is the build yml: https://github.com/VeritasOS/plugin-manager/blob/v1/.github/workflows/go.yml#L72, and below are the logs: https://github.com/VeritasOS/plugin-manager/actions/runs/4389396801/jobs/7686898826

	</testsuite>
	<testsuite name="github.com/VeritasOS/plugin-manager/pluginmanager" tests="0" failures="0" errors="0" id="3" hostname="fv-az221-499" time="0.000" timestamp="2023-03-10T23:51:39Z"></testsuite>
	<testsuite name="github.com/VeritasOS/plugin-manager/utils/log" tests="0" failures="0" errors="0" id="4" hostname="fv-az221-499" time="0.000" timestamp="2023-03-10T23:51:39Z"></testsuite>
	<testsuite name="github.com/VeritasOS/plugin-manager/utils/output" tests="4" failures="0" errors="0" id="5" hostname="fv-az221-499" time="0.000" timestamp="2023-03-10T23:51:39Z">
		<testcase name="TestExecCommand" classname="github.com/VeritasOS/plugin-manager/utils/output" time="0.000"></testcase>
		<testcase name="TestOsMkdirAll" classname="github.com/VeritasOS/plugin-manager/utils/output" time="0.000"></testcase>
		<testcase name="TestOsOpenFile" classname="github.com/VeritasOS/plugin-manager/utils/output" time="0.000"></testcase>
		<testcase name="TestOsRemoveAll" classname="github.com/VeritasOS/plugin-manager/utils/output" time="0.000"></testcase>
		<system-out><![CDATA[coverage: [no statements]
ok  	github.com/VeritasOS/plugin-manager/utils/os	0.002s	coverage: [no statements]]]></system-out>
	</testsuite>
</testsuites>
+ /home/runner/work/plugin-manager/plugin-manager/tools/go/gocov convert /home/runner/work/plugin-manager/plugin-manager/cover/cover.out
+ /home/runner/work/plugin-manager/plugin-manager/tools/go/gocov-xml
error: can't find "pm.go": go/build: go list github.com/VeritasOS/plugin-manager/cmd/pm: fork/exec /usr/local/go/bin/go: no such file or directory


panic: EOF

goroutine 1 [running]:
main.main()
	/go/pkg/mod/github.com/!alek!si/gocov-xml@v1.1.0/gocov-xml.go:106 +0x1265
Error: Process completed with exit code 2.
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

1 participant