Skip to content

Commit c6d8f4f

Browse files
Don't attempt cache updates in Docker container
1 parent 7220154 commit c6d8f4f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/update-cache.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ var async = require('async');
55
var packageHash = require('./package-hash');
66

77
function updateCache(context, projectDir, done) {
8+
// We don't support any caching in a docker container, as the container is reconstructed on every run anyway.
9+
if (context.runnerId === 'docker') {
10+
return done();
11+
}
12+
813
var cachier = context.cachier('modules');
914

1015
packageHash(projectDir, function (err, hash) {

0 commit comments

Comments
 (0)