apply_patches.py causes the entire build process to finish with "success" even though no files are built if .patching-done file is present. That is, if I clean intermediate files, they won't be rebuilt.
This is caused by the following lines in the script:
# skip patch process if we did it before
if isfile(join(FRAMEWORK_DIR, ".patching-done")):
env.Exit(0)
Also, verbose build doesn't show anything neither. The build process just stops with "success". No indication that it's stopped early because of env.Exit(0) call.
Configuration
Operating system: Windows 10 LTSB 2016
PlatformIO Version (
platformio --version
): 4.0.3Description of problem
I have an issue with overriding package files as per https://docs.platformio.org/en/latest/projectconf/advanced_scripting.html#override-package-files
apply_patches.py
causes the entire build process to finish with "success" even though no files are built if.patching-done
file is present. That is, if I clean intermediate files, they won't be rebuilt.This is caused by the following lines in the script:
Also, verbose build doesn't show anything neither. The build process just stops with "success". No indication that it's stopped early because of
env.Exit(0)
call.Steps to Reproduce
apply_patches.py
script detects that files are already patched and stops the build process entirely.Actual Results
The build stops immediately with "SUCCESS" status. No files are actually built.
Expected Results
All project files should be rebuilt and firmware file should be generated.
Additional info
The workaround is to alter
apply_patches.py
script slightly to avoid usingenv.Exit(0)
: