PlasmaLang / plasma

Plasma Programming Language
Other
162 stars 10 forks source link

Moving a module can confuse `plzbuild` #416

Open PaulBone opened 2 years ago

PaulBone commented 2 years ago

Moving a module's file but keeping its filename can confuse plzbuild which does not detect the change and rebuild the ninja scripts:

$ git mv Lib.p lib.p
$ plzbuild
ninja: Entering directory `_build'
ninja: error: '../Lib.p', needed by 'Lib.pi', missing and no known rule to make it
Error: Sub-command 'ninja -C _build ../day01.pz ../day02.pz' exited with
       exit-status 1
$ rm -rf _build/
$ plzbuild
ninja: Entering directory `_build'
[17/17] Copying day02 bytecode