Skip to content

make: SOLANA_PRESET_SOURCES find runs on every invocation, not just fmt #467

Description

@prasanna-anchorage

Follow-up nit from #436 review.

SOLANA_PRESET_SOURCES in src/Makefile is defined with := (simply-expanded), so the find chain_parsers/visualsign-solana/src/presets -name '*.rs' | sort it runs executes at Makefile-parse time on every make invocation — build, test, lint, narrow-build-check — even though only fmt actually references the variable.

Cheap today, but it's wasted work on every unrelated target and will only get more expensive as the preset tree grows.

Fix: switch to a recursively-expanded = variable, or compute the file list inside the fmt recipe itself, so the find only runs when fmt actually runs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions