Skip to content

Commit

Permalink
change suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
sakurai-ryo committed Oct 4, 2024
1 parent 69889ec commit ecee169
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/core/lib/asset-staging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ export class AssetStaging extends Construct {
// Add a suffix to the asset file name
// because when a file without extension is specified, the source directory name is the same as the staged asset file name.
if (this.hashType === AssetHashType.SOURCE && path.dirname(sourcePath) === targetPath) {
targetPath = targetPath + 'noext';
targetPath = targetPath + '_noext';
}
return targetPath;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/aws-cdk-lib/core/test/staging.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1472,7 +1472,7 @@ describe('staging', () => {
const assembly = app.synth();
expect(fs.readdirSync(assembly.directory)).toEqual([
'asset.ef734136dc22840a94140575a2f98cbc061074e09535589d1cd2c11a4ac2fd75',
'asset.ef734136dc22840a94140575a2f98cbc061074e09535589d1cd2c11a4ac2fd75noext',
'asset.ef734136dc22840a94140575a2f98cbc061074e09535589d1cd2c11a4ac2fd75_noext',
'cdk.out',
'manifest.json',
'stack.template.json',
Expand Down Expand Up @@ -1571,7 +1571,7 @@ describe('staging with docker cp', () => {
const assembly = app.synth();
expect(fs.readdirSync(assembly.directory)).toEqual([
'asset.93bd4079bff7440a725991ecf249416ae9ad73cb639f4a8d9e8f3ad8d491e89f',
'asset.93bd4079bff7440a725991ecf249416ae9ad73cb639f4a8d9e8f3ad8d491e89fnoext',
'asset.93bd4079bff7440a725991ecf249416ae9ad73cb639f4a8d9e8f3ad8d491e89f_noext',
'cdk.out',
'manifest.json',
'stack.template.json',
Expand Down

0 comments on commit ecee169

Please sign in to comment.