Is There Support to Force-Rebuild a File? #3971
PvtPuddles
started this conversation in
General
Replies: 1 comment 4 replies
-
I'm a bit puzzled about why it needs to run again.
Is the generator doing some other work unrelated to the build, maybe? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I would like to add a file to my build.yaml to always re-process a file when
build
is run. It does not appear that this is supported, but I wasn't sure so I wanted to start a discussion before opening an issue.For context, I am using the Dart OpenAPI Generator, which has an annotation that triggers the code generator. (Why they don't just use a
openapi.yaml
is beyond me).The problem exists that
build_runner
will only trigger the OpenAPI builder if the file with the annotation is re-processed (IE: the file has been changed). The OpenAPI generator works around this issue by adding a "last run" timestamp and updating it every timebuild_runner
runs. This causes a lot of churn and results in merge conflicts when working in a team.From the
Openapi
annotation'sforceAlwaysRun
property:Is there a way I can force
build_runner
to always reprocess this single file?Beta Was this translation helpful? Give feedback.
All reactions