Documentation
¶
Index ¶
Constants ¶
View Source
const (
PluginName = "bun"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin implements ecosystems.SCAPlugin for Bun projects. It uses `bun why '*' --top` to resolve the full dependency graph without bespoke lockfile parsing, requiring bun >= 1.2.19.
func (Plugin) BuildDepGraphsFromDir ¶
func (p Plugin) BuildDepGraphsFromDir( ctx context.Context, log logger.Logger, dir string, options *ecosystems.SCAPluginOptions, ) (*ecosystems.PluginResult, error)
BuildDepGraphsFromDir discovers bun.lock files under dir and produces dep graphs for each one. Workspace projects yield one SCAResult per workspace package plus one for the root; non-workspace projects yield a single result.
Click to show internal directories.
Click to hide internal directories.