File tree Expand file tree Collapse file tree 4 files changed +19
-2
lines changed
actions/polymorph_codegen
DynamoDbEncryption/dafny/DynamoDbEncryption/src Expand file tree Collapse file tree 4 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 97
97
run : |
98
98
echo "PROJECT_DEPENDENCIES=${{ inputs.update-and-regenerate-mpl != 'true' && 'PROJECT_DEPENDENCIES=' || '' }}" >> $GITHUB_OUTPUT
99
99
100
+ - name : Print dotnet version
101
+ shell : bash
102
+ run : |
103
+ dotnet --version
104
+
100
105
- name : Regenerate Dafny code using smithy-dafny
101
106
# Unfortunately Dafny codegen doesn't work on Windows:
102
107
# https://github.com/smithy-lang/smithy-dafny/issues/317
Original file line number Diff line number Diff line change 48
48
with :
49
49
dotnet-version : ${{ matrix.dotnet-version }}
50
50
51
+ - name : Create temporary global.json
52
+ run : echo '{"sdk":{"rollForward":"latestFeature","version":"6.0.0"}}' > ./global.json
53
+
51
54
- name : Setup Java 17 for codegen
52
55
uses : actions/setup-java@v3
53
56
with :
Original file line number Diff line number Diff line change @@ -248,6 +248,11 @@ module SearchableEncryptionInfo {
248
248
assume {:axiom} cache. Modifies == {};
249
249
var getCacheOutput := cache. GetCacheEntry (getCacheInput);
250
250
251
+ // If error is not EntryDoesNotExist, return failure
252
+ if (getCacheOutput. Failure? && ! getCacheOutput. error. EntryDoesNotExist?) {
253
+ return Failure (AwsCryptographyMaterialProviders(AwsCryptographyMaterialProviders:=getCacheOutput.error));
254
+ }
255
+
251
256
if getCacheOutput. Failure? {
252
257
// = specification/searchable-encryption/search-config.md#beacon-keys
253
258
// # Beacon keys MUST be obtained from the configured [Beacon Key Source](#beacon-key-source).
@@ -280,7 +285,11 @@ module SearchableEncryptionInfo {
280
285
281
286
verifyValidStateCache (cache);
282
287
assume {:axiom} cache. Modifies == {};
283
- var _ := cache. PutCacheEntry (putCacheEntryInput);
288
+
289
+ var putResult := cache. PutCacheEntry (putCacheEntryInput);
290
+ if (putResult. Failure? && ! putResult. error. EntryAlreadyExists?) {
291
+ return Failure (AwsCryptographyMaterialProviders(AwsCryptographyMaterialProviders:=putResult.error));
292
+ }
284
293
return Success (keyMap);
285
294
} else {
286
295
:- Need (
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ mplDependencyJavaVersion=1.6.0
3
3
dafnyVersion =4.8.0
4
4
dafnyVerifyVersion =4.8.0
5
5
dafnyRuntimeJavaVersion =4.8.0
6
- smithyDafnyJavaConversionVersion =0.1
6
+ smithyDafnyJavaConversionVersion =0.1.1
You can’t perform that action at this time.
0 commit comments