-
-
Notifications
You must be signed in to change notification settings - Fork 118
Open
Milestone
Description
I stumbled on a weird issue with the following steps:
- Fresh git checkout, i.e. no
node_modulesdirectory present - Run task
npmInstallwith thefastNpmInstalloption enabled - Run the clean task, i.e. remove the whole
node_modulesdirectory - Run
npmInstallagain, it reports as up-to-date - Other tasks fail because
node_modulesis missing
The problem is that in step 2 the file node_modules/.package-lock.json was not recorded as output because it did not yet exist at configuration time, only after task execution. So the task has no configured outputs and won't become out of date by removing the node_modules directory.
Proposed fix: When using fastNpmInstall, do not check for existance of the file at configuration time here, instead always return the file.
Metadata
Metadata
Assignees
Labels
No labels