Skip to content

[BUG] Can't fully work with go tool directive #1571

@XSAM

Description

@XSAM

Describe the bug

The fossa-cli returns error when analyze go.mod like this

module main

go 1.24.0

tool (
	github.com/bufbuild/buf/cmd/buf
	github.com/wadey/gocovmerge
)

It works with this, though

module main

go 1.24.0

tool github.com/bufbuild/buf/cmd/buf
tool github.com/wadey/gocovmerge

To Reproduce
See above

Expected behavior
It should pass without any error

Debug bundle
Please run fossa with the --debug flag and attach the resulting fossa.debug.json.gz file here.

Additional context
Related to #1553, but #1553 does not fully fix the tool directive issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions