dartdart-build

Dart `build_config` rename `buildStep.inputId` file


I want to rename (not just the extension) a file in my Builder. Is there any reason I shouldn't just create my own File based on buildStep.inputId and write to the file?


Solution

  • If you do this then lots of weird things will happen:

    Basically, you would be circumventing the whole build system, and the behavior becomes undefined.