Erlang
Analyze Erlang projects with FOSSA through the FOSSA CLI using rebar3.
Overview
FOSSA supports Erlang projects through rebar3. Erlang is analyzed with the FOSSA CLI, which builds the dependency graph from your rebar.config.
Tool support
| Tool | Quick Import (app.fossa.com) | CLI (fossa-cli) |
|---|---|---|
| Erlang (rebar3) | N/A | rebar.config |
Analyzing with the CLI
When developing in Erlang, rebar3 is the most common package manager. Dependencies are specified in a manifest file, which rebar3 uses to build a dependency graph and download the correct dependencies.
Install the latest release of fossa-cli:
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bashThen run fossa analyze from your repository's root directory to analyze your Erlang project using rebar3. See the rebar3 strategy reference for detection details.
Analysis strategies
| Strategy | Direct Deps | Transitive Deps | Edges | Container Scanning |
|---|---|---|---|---|
| rebar3 | ✅ | ✅ | ✅ | ❌ |
Warning
rebar.config allows users to alias dependencies in a format similar to {deps, [{chatterbox, {pkg, ts_chatterbox}},. This format is not currently handled in the CLI and will result in unknown dependencies being shown in the FOSSA UI. The team is aware of this limitation and a fix is planned.