Skip to content

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

@abhijithda

Description

@abhijithda

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions