File tree 2 files changed +6
-2
lines changed
core/src/main/java/com/styra/opa/wasm
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
package com .styra .opa .wasm ;
2
2
3
3
import com .dylibso .chicory .experimental .hostmodule .annotations .WasmModuleInterface ;
4
+ import com .dylibso .chicory .runtime .ByteArrayMemory ;
4
5
import com .dylibso .chicory .runtime .Instance ;
5
6
import com .dylibso .chicory .runtime .Memory ;
6
7
import com .dylibso .chicory .wasm .Parser ;
@@ -37,7 +38,10 @@ private OpaWasm(
37
38
this .yamlMapper = yamlMapper ;
38
39
this .memory = memory ;
39
40
this .instance =
40
- Instance .builder (Parser .parse (is )).withImportValues (toImportValues ()).build ();
41
+ Instance .builder (Parser .parse (is ))
42
+ .withImportValues (toImportValues ())
43
+ .withMemoryFactory (ByteArrayMemory ::new )
44
+ .build ();
41
45
this .builtins = initializeBuiltins (defaultBuiltins , builtins );
42
46
}
43
47
Original file line number Diff line number Diff line change 58
58
<maven-gpg-plugin .version>3.2.7</maven-gpg-plugin .version>
59
59
<nexus-staging-maven-plugin .version>1.7.0</nexus-staging-maven-plugin .version>
60
60
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
61
- <chicory .version>1.0 .0</chicory .version>
61
+ <chicory .version>1.1 .0</chicory .version>
62
62
<junit .version>5.11.4</junit .version>
63
63
<jackson .version>2.18.2</jackson .version>
64
64
<spotless .version>2.44.2</spotless .version>
You can’t perform that action at this time.
0 commit comments