-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Labels
Team:Cloud SecurityCloud Security team relatedCloud Security team relatedbugSomething isn't workingSomething isn't working
Description
Describe the bug
testify is a test dependencies and should not be used outside tests
The dependency is currently linked in the final binary.
I suspect this is caused by mocks being defined in non-test packages and in non-test files. The github.com/stretchr/testify/mock.init symbol is linked in the binary likely due to the import causing the call to the init method
Preconditions
Environment state and/or platform-specific configurations.
To Reproduce
Write the exact actions one should perform in order to reproduce the bug.
Steps to reproduce the behavior:
- build cloudbeat
- go version -m cloudbeat
- observe testify in the dependency list
Expected behavior
testify is not included in the final binary
References
Metadata
Metadata
Assignees
Labels
Team:Cloud SecurityCloud Security team relatedCloud Security team relatedbugSomething isn't workingSomething isn't working