seldon-core
seldon-core copied to clipboard
Explicitly remove reference to licenses that are not compiled into binary
Currently there are three dependencies that are not compiled into the binary, but still have GNU license, and hence are included into the list of licenses that are exported with the binary. Given these dependencies are used only as a CLI, and are not compiled into binary we should explore ways in which they can be removed from the list of final dependencies. The first option to ensrue these are removed is through adding an "exclude" in the go.mod. If that doesn't explicitly remove it we can just add a manual step to remove the rows from the final CSV.
The relevant libraies are goalngci/check, golangci/golangci-lint and OpenPeeDeeP/depguard. The dependency tree shows that depguard and check are compiled into golangci-lint, however the latter is only used as CI in the higher level dependencies, namely goreleaser/nfpm and goreleaser/goreleaser.