Skip to content

scripts/check.sh exits 1 on a clean tree: C lint has no way to get compile_commands.json #655

Description

@krisarmstrong

On a clean checkout with everything else green (golangci-lint 0 issues, all Go tests ok), ./scripts/check.sh still exits 1:

Running C linting...
compile_commands.json not found. Generate with: bear -- make dataplane c-test

The message names the fix but nothing runs it: compile_commands.json is not a prerequisite of any target, and bear is not in the documented toolchain. So the repo's own top-level check script cannot pass locally without an undocumented manual step.

Either make the C-lint step generate its own compile database (or depend on a target that does), or skip with a warning when bear/the database is absent so a missing optional tool doesn't fail the whole gate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs-infoNeeds more information before work can proceed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions