Skip to content

Commit e2d76c3

Browse files
chore(go): fix restore logic for polymorph copied code (#1935)
1 parent 56821de commit e2d76c3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

DynamoDbEncryption/Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,12 @@ STRUCTUREDENCRYPTION_INDEX_FILE_WITH_EXTERN_STRING="module {:extern \"software.a
165165
STRUCTUREDENCRYPTION_INDEX_FILE_WITHOUT_EXTERN_STRING="module StructuredEncryption"
166166

167167
# Target to restore all directories in a list
168-
# TODO: Remove this once we don't copy all of the directories into implementation and test https://sim.amazon.com/issues/CrypTool-5447
169-
RESTORE_DIRS := README.md
170-
_polymorph_go: restore_directories
171-
restore_directories:
172-
@for dir in $(RESTORE_DIRS); do \
173-
if [ -d "runtimes/go/ImplementationFromDafny-go/$$dir" ]; then \
168+
# TODO: Remove this once we don't copy all of the directories and files into implementation and test https://sim.amazon.com/issues/CrypTool-5447
169+
RESTORE_FILES_DIR := README.md
170+
_polymorph_go: restore_file_directories
171+
restore_file_directories:
172+
@for dir in $(RESTORE_FILES_DIR); do \
173+
if [ -e "runtimes/go/ImplementationFromDafny-go/$$dir" ]; then \
174174
cp -Rf runtimes/go/ImplementationFromDafny-go/$$dir runtimes/go/; \
175175
rm -rf runtimes/go/ImplementationFromDafny-go/$$dir; \
176176
rm -rf runtimes/go/TestsFromDafny-go/$$dir; \

0 commit comments

Comments
 (0)