licensescan

command module
v0.0.0-...-5cbd3cb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

README

Simple dependency scanner tool

Keeps license detection easy - relies on a static set of files.

To generate in a nice format:

go run . scan --binary ~/bin/kpt | \
  jq -r '.[] | [.name, (.licenseInfo.licenseURLs | join(" ")), .licenseInfo.license, "kpt", "YES", if .licenseInfo.mustShipCode then  "YES" else "NO" end ] | @csv'

Saving a copy in the repo is helpful to track changes over time:

go run . scan --binary ~/bin/kpt | jq . > results.txt

To generate a LICENSES text file (useful for embedding):

go run . scan --print --binary ~/bin/kpt | jq -r '.[] | ("================================================================================\n= " + .name + " =\n\n" + .licenseFiles[].contents + "\n\n")' > ../../licenses/kpt.txt

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL