diff --git a/change/change-50d5ec94-8c4b-470b-be07-7bebaea6503f.json b/change/change-50d5ec94-8c4b-470b-be07-7bebaea6503f.json new file mode 100644 index 000000000..ec6c3b41c --- /dev/null +++ b/change/change-50d5ec94-8c4b-470b-be07-7bebaea6503f.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "type": "patch", + "comment": "If target has no outputs set, and no global outputGlob set, assume no outputs", + "packageName": "@lage-run/cache", + "email": "dobes@formative.com", + "dependentChangeType": "patch" + } + ] +} \ No newline at end of file diff --git a/packages/cache/src/providers/BackfillCacheProvider.ts b/packages/cache/src/providers/BackfillCacheProvider.ts index d1b75f0f0..8776983c9 100644 --- a/packages/cache/src/providers/BackfillCacheProvider.ts +++ b/packages/cache/src/providers/BackfillCacheProvider.ts @@ -76,7 +76,7 @@ export class BackfillCacheProvider implements CacheProvider { const cacheStorage = this.getTargetCacheStorageProvider(target.cwd, hash); try { - await cacheStorage.put(hash, target.outputs ?? this.options.cacheOptions.outputGlob ?? ["**/*"]); + await cacheStorage.put(hash, target.outputs ?? this.options.cacheOptions.outputGlob ?? []); } catch (error) { let message;