unpack

command module
v0.1.0-pre3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

README

unpack: Your Handy Dependency Extractor

A collection of dependency analysis libraries and CLI tool to extract dependency data from codebases, artifacts and software bills of materials (SBOMs).

unpack is still an experimental project. We have initial support to extract data from go and rust codebases (more are on the way). It has support for dependency extraction from SBOMs via the native protobom unserializers.

Install

As unpack is still in a prerelease state, we have not released binary artifacts. For now use go install or clone the repo and build:

go install github.com/carabiner-dev/unpack@latest

Usage

Extract Source Dependency Data

To extract dependency data from code bases use unpack extract:

# Extract the dependency data of a code base im a tree: 
unpack extract /path/to/code

# Same but output in an SPDX SBOM:
unpack extract --format=spdx /path/to/code 

# Same SPDX document, but wrapped in an intoto attestation
unpack extract --attest --format=spdx /path/to/code 
Extract SBOM Dependency Data

To extract data from an SBOM, use unpack sbom:

# Extract the dependency data from an SBOM:
unpack sbom /path/to/sbom.spdx.json

# Same but output the SBOM data in another format:
unpack sbom --format=cyclonedx /path/to/sbom.spdx.json 

Patches Welcome!

This tool and its libraries are released under the Apache 2.0 license by Carbiner Systems, Inc. Feel free to contribute improvements or report any problems you find by opening a new issue. We love feedback and love to make the project useful for you.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1
internal
cmd
git
Package requirements collects a few implementations of the v1.Requirement interface.
Package requirements collects a few implementations of the v1.Requirement interface.
source

Jump to

Keyboard shortcuts

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