Commit 9d47852
authored
fix(cli):
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.gen2-migration refactor creates snapshot filenames that are too long for windows machines (#14844)1 parent 0363a26 commit 9d47852
182 files changed
Lines changed: 227 additions & 14 deletions
File tree
- amplify-migration-apps
- backend-only/_snapshot.post.refactor
- discussions/_snapshot.post.refactor
- fitness-tracker/_snapshot.post.refactor
- imported-resources/_snapshot.post.refactor
- mood-board/_snapshot.post.refactor
- product-catalog/_snapshot.post.refactor
- project-boards/_snapshot.post.refactor
- store-locator/_snapshot.post.refactor
- docs/packages/amplify-cli/src/commands/gen2-migration
- packages
- amplify-cli/src
- __tests__/commands/gen2-migration
- commands/gen2-migration/_common
- amplify-e2e-gen2-migration/src/core
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
0 commit comments