Skip to content

[Bug] config/defaults.yaml contains developer-specific hardcoded file paths that cause errors for all other users #18

@wiebe-vandendriessche

Description

@wiebe-vandendriessche

AIBoMGen CLI version

v0.2.1

Go version (if built from source)

go1.25.x

Operating system

Any

Command used

# Run from a freshly cloned repository without --config
aibomgen-cli enrich

Expected behavior

The command returns a clear usage error asking the user to provide --input, since no input file was specified.

Actual behavior

The command fails with an error about a missing file path that only exists in the original developer's environment: ./dist/WiebeVandendriessche_model-card-example_aibom.json. config/defaults.yaml is automatically loaded by default for any user who runs the CLI from a cloned repo without --config. It hardcodes developer-specific defaults: scan.input: "./targets/target-3", and enrich.input/validate.input pointing to a personal file path.

Additional context

Fix: replace all hardcoded path defaults in config/defaults.yaml with empty strings (input: ""). The commands already validate that --input is provided and return a clear UserError when absent. Update the config file header to clarify it is an example to be copied and customised locally, not a ready-to-use default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions