@@ -201,6 +201,7 @@ export type DependencyCacheRestoreStatusReport = DependencyCacheRestoreStatus[];
201201 * @param features Information about which FFs are enabled.
202202 * @param language The language the `CacheConfig` is for. For use in the log message.
203203 * @param cacheConfig The caching configuration to call `getHashPatterns` on.
204+ * @param checkType Whether we are checking the patterns for a download or upload.
204205 * @param logger The logger to write the log message to if there is an error.
205206 * @returns An array of glob patterns to use for hashing files, or `undefined` if there are no matching files.
206207 */
@@ -209,13 +210,14 @@ export async function checkHashPatterns(
209210 features : FeatureEnablement ,
210211 language : Language ,
211212 cacheConfig : CacheConfig ,
213+ checkType : "download" | "upload" ,
212214 logger : Logger ,
213215) : Promise < string [ ] | undefined > {
214216 const patterns = await cacheConfig . getHashPatterns ( codeql , features ) ;
215217
216218 if ( patterns === undefined ) {
217219 logger . info (
218- `Skipping download of dependency cache for ${ language } as we cannot calculate a hash for the cache key.` ,
220+ `Skipping ${ checkType } of dependency cache for ${ language } as we cannot calculate a hash for the cache key.` ,
219221 ) ;
220222 }
221223
@@ -257,6 +259,7 @@ export async function downloadDependencyCaches(
257259 features ,
258260 language ,
259261 cacheConfig ,
262+ "download" ,
260263 logger ,
261264 ) ;
262265 if ( patterns === undefined ) {
@@ -354,6 +357,7 @@ export async function uploadDependencyCaches(
354357 features ,
355358 language ,
356359 cacheConfig ,
360+ "upload" ,
357361 logger ,
358362 ) ;
359363 if ( patterns === undefined ) {
0 commit comments