You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constfs=require('fs');const{ directory, file }=require('jake');directory('build');file('build/output1.txt',['build'],()=>{console.log('writing build/output1.txt');fs.writeFileSync('build/output1.txt','Contents of build/output1.txt');});file('build/output2a.txt',['build/output1.txt'],()=>{console.log('writing build/output2a.txt');fs.writeFileSync('build/output2a.txt','Contents of build/output2a.txt');});file('build/output2b.txt',['build/output1.txt'],()=>{console.log('writing build/output2b.txt');fs.writeFileSync('build/output2b.txt','Contents of build/output2b.txt');});file('build/output3.txt',['build/output2a.txt','build/output2b.txt'],()=>{console.log('writing build/output3.txt');fs.writeFileSync('build/output3.txt','Contents of build/output3.txt');});
Starting from a state where build/output1.txt (or build entirely) is missing, everything is built with jake build/output3.txt as desired. But if only build/output2b.txt or build/output3.txt are missing, nothing gets rebuild. Yes, jake build/output3.txt does not even build build/output3.txt. If build/output1.txt is touched, only build/output2a.txt is rebuilt by jake build/output3.txt. No errors are shown for any of these cases.
This might be a duplicate of #388, but that has a rather vague description, so I'm not sure. If it is, this MWE might be a starting point for a test case for #387.
The text was updated successfully, but these errors were encountered:
MWE:
Starting from a state where
build/output1.txt
(orbuild
entirely) is missing, everything is built withjake build/output3.txt
as desired. But if onlybuild/output2b.txt
orbuild/output3.txt
are missing, nothing gets rebuild. Yes,jake build/output3.txt
does not even buildbuild/output3.txt
. Ifbuild/output1.txt
istouch
ed, onlybuild/output2a.txt
is rebuilt byjake build/output3.txt
. No errors are shown for any of these cases.This might be a duplicate of #388, but that has a rather vague description, so I'm not sure. If it is, this MWE might be a starting point for a test case for #387.
The text was updated successfully, but these errors were encountered: