Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only run targets when necessary and no earlier #221

Merged
merged 1 commit into from
Mar 22, 2023
Merged

Only run targets when necessary and no earlier #221

merged 1 commit into from
Mar 22, 2023

Conversation

kzu
Copy link
Member

@kzu kzu commented Mar 22, 2023

When we add items/propeties that need to be visible to the generators, we only really need to run before the editorconfig is emitted, and no earlier. This happens right before compilation, so it's a safe late-stage target to depend on.

We cannot run later since that would mean outdated info to the generator, but this should avoid early-run issues such as devlooped/GitInfo#260.

@kzu kzu added the enhancement New feature or request label Mar 22, 2023
When we add items/propeties that need to be visible to the generators, we only really need to run before the editorconfig is emitted, and no earlier. This happens right before compilation, so it's a safe late-stage target to depend on.

We cannot run later since that would mean outdated info to the generator, but this should avoid early-run issues such as devlooped/GitInfo#260.
@kzu kzu force-pushed the dev/NoEarlyRun branch from b2ed206 to 146a8dd Compare March 22, 2023 17:50
@kzu kzu enabled auto-merge (rebase) March 22, 2023 17:50
@kzu kzu merged commit 64ad452 into main Mar 22, 2023
@kzu kzu deleted the dev/NoEarlyRun branch March 22, 2023 17:56
@devlooped devlooped locked and limited conversation to collaborators Sep 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant