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

Ignore W0104 contains non-Go code warnings in errors #249

Open
samirsss opened this issue Jan 4, 2024 · 0 comments
Open

Ignore W0104 contains non-Go code warnings in errors #249

samirsss opened this issue Jan 4, 2024 · 0 comments

Comments

@samirsss
Copy link

samirsss commented Jan 4, 2024

Hi,

This is a great tool for us to use, to be able to identify the licenses that we're using (including the dependencies) to ensure we dont use any forbidden or restricted licenses.

However the error reporting from the tool includes the warnings:

W0104 10:49:27.896553 54153 library.go:101] "golang.org/x/sys/unix" contains non-Go code that can't be inspected for further dependencies:
/pkg/mod/golang.org/x/[email protected]/unix/asm_bsd_arm64.s
/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.s
W0104 10:49:27.927581 54153 library.go:101] "github.com/petermattis/goid" contains non-Go code that can't be inspected for further dependencies:
/pkg/mod/github.com/petermattis/[email protected]/goid_go1.5.s
W0104 10:49:29.034446 54153 library.go:101] "golang.org/x/crypto/chacha20" contains non-Go code that can't be inspected for further dependencies:
/pkg/mod/golang.org/x/[email protected]/chacha20/chacha_arm64.s
W0104 10:49:29.739647 54153 library.go:101] "github.com/confluentinc/confluent-kafka-go/kafka" contains non-Go code that can't be inspected for further dependencies:
/pkg/mod/github.com/confluentinc/[email protected]/kafka/glue_rdkafka.h
/pkg/mod/github.com/confluentinc/[email protected]/kafka/select_rdkafka.h
W0104 10:49:29.764589 54153 library.go:101] "github.com/confluentinc/confluent-kafka-go/kafka/librdkafka_vendor" contains non-Go code that can't be inspected for further dependencies:
/pkg/mod/github.com/confluentinc/[email protected]/kafka/librdkafka_vendor/rdkafka.h
/pkg/mod/github.com/confluentinc/[email protected]/kafka/librdkafka_vendor/rdkafka_mock.h

It would be great if these W0104 warnings can be suppressed to actually get to real errors. We want to be able to include this in our CI to alert developers if any new components/dependencies were included which has licenses that we shouldnt be using in our codebase.

@samirsss samirsss changed the title Ignore contains non-Go code warnings in errors Ignore W0104 contains non-Go code warnings in errors Jan 4, 2024
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