Skip to content

GoMod: go list -deps error: no matching files found #5560

@mawl

Description

@mawl

Hey,

We have an issue with the GoMod Package Manager

10:35:45.499 [DefaultDispatcher-worker-1] ERROR org.ossreviewtoolkit.analyzer.managers.GoMod - Resolving GoMod dependencies for path 'go.mod' failed with: 
IOException: Running 'go list -deps -f {{with .Module}}{{.Path}} {{.Version}}{{end}} ./...' in '/builds/some-go-app' failed with exit code 1:
XXXXXX.go:10:12: pattern some.file: no matching files found

Content of XXXXXX.go

//go:generate cp ../../../some.file .
//go:embed some.file

some.file ist generated during build of another component in the project.

We don't want to run "go generate/go build" as a prequisite for ort. So, are there other ways to get this working?

Cheers,
Marco

Metadata

Metadata

Assignees

No one assigned

    Labels

    analyzerAbout the analyzer toolneeds infoAn issue where further information is required

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions