File tree 1 file changed +11
-2
lines changed
core/src/test/java/com/styra/opa/wasm
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -96,10 +96,19 @@ public static void prepareTestcases() {
96
96
testcasesDestFolder .resolve (testcasesTar ),
97
97
StandardCopyOption .REPLACE_EXISTING );
98
98
} catch (IOException e ) {
99
+ var path = testcasesTarPath .toFile ().getAbsolutePath ();
100
+ var additionalInstructions = "" ;
101
+ if (path .endsWith ("testcases.tar.gz" )) {
102
+ additionalInstructions =
103
+ ", to obtain the archive you need to clone"
104
+ + " 'github.com/open-policy-agent/opa' and run the command:"
105
+ + " `WASM_BUILD_ONLY=true make wasm-rego-test`, you should be able to"
106
+ + " find the result in the Go cache directory" ;
107
+ }
99
108
throw new RuntimeException (
100
109
testcasesTarPath .toFile ().getAbsolutePath ()
101
- + " file not found in root, please download it ... let figure out "
102
- + " how!" ,
110
+ + " file not found in root"
111
+ + additionalInstructions ,
103
112
e );
104
113
}
105
114
List <String > tarCommand = new ArrayList <>();
You can’t perform that action at this time.
0 commit comments