Skip to content

Commit a35ae55

Browse files
michaellandikaranA-aws
authored andcommitted
fix(amazonq): /dev to support upload of nested Dockerfiles aws#6115
Nested `Dockerfile` files were not supported with aws#6107 Look at path basename when comparing file to list of well known files.
1 parent c45eac7 commit a35ae55

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Bug Fix",
3+
"description": "Amazon Q /dev not adding Dockerfiles in nested folders"
4+
}

packages/core/src/shared/filetypes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,8 @@ export const codefileExtensions = new Set([
357357
'.zig',
358358
])
359359

360-
// Some well-known code files without an extension
361-
export const wellKnownCodeFiles = new Set(['Dockerfile', 'Dockerfile.build'])
360+
// Code file names without an extension
361+
export const codefileNames = new Set(['Dockerfile', 'Dockerfile.build'])
362362

363363
/** Returns true if `filename` is a code file. */
364364
export function isCodeFile(filename: string): boolean {

0 commit comments

Comments
 (0)