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
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to add a file to my build.yaml to always re-process a file when
buildis 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.yamlis beyond me).The problem exists that
build_runnerwill 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_runnerruns. This causes a lot of churn and results in merge conflicts when working in a team.From the
Openapiannotation'sforceAlwaysRunproperty:Is there a way I can force
build_runnerto always reprocess this single file?Beta Was this translation helpful? Give feedback.
All reactions