mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
6c8964fb3b
* java-quickstart replace scenarios by DAML Script This replaces the scenarios in the java quickstart project by DAML script test cases. The following changes were required * Replace `getParty` by `allocateParty`. * Replace `create` and `exercise` by `createCmd` and `exerciseCmd`. * Replace the pattern of `submit ... do create ...; exercise ...` by `submit ... do createAndExerciseCmd ... ...`. * Replace instances of `submit ... do fetch ...` by `query ... ...`. To that end I've added the following helper function. ``` queryIou : Party -> ContractId Iou -> Optional Iou ``` changelog_begin changelog_end * Replace queryIou by FetchIou choice changelog_begin changelog_end * Add comment explaining fetch choice Addressing review comment https://github.com/digital-asset/daml/pull/7183#discussion_r478918758 * Support dependencies in daml_test rule Cherry-picked from https://github.com/digital-asset/daml/pull/7264/files Renamed `dependencies` as `deps` to stick to Bazel conventions. * Fix quickstart `daml_test` target * fmt * Quote deps in daml.yaml To avoid issues with `:` in Windows paths. * //docs:quickstart-java - use temp dir This target repeatedly failed to build on Windows with ``` ERROR: D:/a/1/s/docs/BUILD.bazel:538:8: declared output 'docs/quickstart-java.tar.gz' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely) ``` The genrule was operating in the current working directory and builds on Windows are not sandboxed. Conflicting files in the current working directory could cause this to fail. Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io> |
||
---|---|---|
.. | ||
BUILD.bazel | ||
daml.bzl |