Skip to content

Commit 9d47852

Browse files
authored
fix(cli): gen2-migration refactor creates snapshot filenames that are too long for windows machines (#14844)
fix(cli): gen2-migration refactor creates snapshot filenames that are too long for windows machines Replace long snapshot filenames with 10-character SHA-256 hashes and record the hash-to-original-name mapping in a separate filename-mapping.json file. This avoids Windows MAX_PATH (260 char) errors when snapshot filenames include deeply nested CloudFormation stack names. Also rename OUTPUT_DIRECTORY to REFACTOR_SNAPSHOT_OUTPUT_DIRECTORY for clarity and move the output path under .amplify/ to align with the project convention. Updated all migration app snapshots to use the new hashed format. --- Prompt: implement the "writeRefactorSnapshotFile" such that hashes the filename to 10 characters and records the mapping from the hash to the original filename in a separate mapping file that is updated each time it is invoked.
1 parent 0363a26 commit 9d47852

182 files changed

Lines changed: 227 additions & 14 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-storages3c31471c3-x.__to__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.mappings.json renamed to amplify-migration-apps/backend-only/_snapshot.post.refactor/0f966647fe.json

File renamed without changes.

amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x-holding.target.template.json renamed to amplify-migration-apps/backend-only/_snapshot.post.refactor/14d20a6cd1.json

File renamed without changes.

amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.template.json renamed to amplify-migration-apps/backend-only/_snapshot.post.refactor/186d093d42.json

File renamed without changes.

amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.__to__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.source.template.json renamed to amplify-migration-apps/backend-only/_snapshot.post.refactor/20ff440885.json

File renamed without changes.

amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.__to__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x-holding.target.template.json renamed to amplify-migration-apps/backend-only/_snapshot.post.refactor/2278c29e80.json

File renamed without changes.

amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.parameters.json renamed to amplify-migration-apps/backend-only/_snapshot.post.refactor/3b51edd15c.json

File renamed without changes.

amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-storages3c31471c3-x.__to__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.target.template.json renamed to amplify-migration-apps/backend-only/_snapshot.post.refactor/46319edb6d.json

File renamed without changes.

amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.template.json renamed to amplify-migration-apps/backend-only/_snapshot.post.refactor/4f563afc0b.json

File renamed without changes.

amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.template.json renamed to amplify-migration-apps/backend-only/_snapshot.post.refactor/4f7242675b.json

File renamed without changes.

amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.__to__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.target.template.json renamed to amplify-migration-apps/backend-only/_snapshot.post.refactor/54b5fed617.json

File renamed without changes.

0 commit comments

Comments
 (0)