Skip to content

Commit e266ef4

Browse files
authored
Fix filtering in UploadSourceCodeStep (#293)
* Add logs to error message and fix filter * Revert error log changes
1 parent f0030d4 commit e266ef4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/commands/imageSource/buildImageInAzure/UploadSourceCodeStep.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ export class UploadSourceCodeStep extends AzureWizardExecuteStep<IBuildImageInAz
2121

2222
const source: string = context.rootFolder.uri.fsPath;
2323
let items = await fse.readdir(source);
24-
items = items.filter(i => !(i in vcsIgnoreList));
24+
items = items.filter(i => {
25+
return !vcsIgnoreList.includes(i)
26+
})
2527
tar.c({ cwd: source }, items).pipe(fse.createWriteStream(context.tarFilePath));
2628

2729
const sourceUploadLocation = await context.client.registries.getBuildSourceUploadUrl(context.resourceGroupName, context.registryName);

0 commit comments

Comments
 (0)