mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-11-25 20:42:40 +00:00
Fix rev-manifest missing, like, half the assets
This commit is contained in:
@@ -85,11 +85,6 @@ module.exports = exports = class Manifest {
|
||||
mode: 'new',
|
||||
};
|
||||
|
||||
if (task.nocache) {
|
||||
result.mode = 'silent';
|
||||
return result;
|
||||
}
|
||||
|
||||
const [ iTime, oTime, cTime, iRev ] = await Promise.all([
|
||||
local && this.stat(input),
|
||||
this.stat(output),
|
||||
@@ -97,6 +92,12 @@ module.exports = exports = class Manifest {
|
||||
local && this.compareBy.inputRev && this.revFile(input),
|
||||
]);
|
||||
|
||||
if (task.nocache) {
|
||||
result.iRev = iRev;
|
||||
result.mode = 'silent';
|
||||
return result;
|
||||
}
|
||||
|
||||
if (local && !iTime) throw new Error('Input file does not exist: ' + input);
|
||||
|
||||
if (!local && !cTime) {
|
||||
@@ -150,7 +151,7 @@ module.exports = exports = class Manifest {
|
||||
|
||||
async touch (task, lastSeen = new Date()) {
|
||||
|
||||
if (task.nocache || task.action.name) return null;
|
||||
if (task.nocache || !task.action.name) return null;
|
||||
|
||||
const hash = this.hash(task);
|
||||
const { input, output } = task;
|
||||
|
||||
Reference in New Issue
Block a user