Skip to content

Commit

Permalink
Fix build-and-lint tests (#5320)
Browse files Browse the repository at this point in the history
Hardcoding the version breaks as soon as we make a release PR where
the version is not 0.0.0.

changelog_begin
changelog_end
  • Loading branch information
cocreature authored Mar 31, 2020
1 parent 6e94197 commit b43b8d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion language-support/ts/codegen/tests/build-and-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ PACKAGE_JSON=$(rlocation "$TEST_WORKSPACE/$7")
TS_DIR=$(dirname $PACKAGE_JSON)
DAML_TYPES=$(rlocation "$TEST_WORKSPACE/$8")
DAML_LEDGER=$(rlocation "$TEST_WORKSPACE/$9")
SDK_VERSION=${10}

TMP_DAML_TYPES=$TMP_DIR/daml-types
TMP_DAML_LEDGER=$TMP_DIR/daml-ledger
Expand All @@ -64,7 +65,7 @@ PATH=`dirname $YARN`:$PATH $DAML2TS -o daml2ts $DAR
rm package.json
# Since we eschew using workspaces and resolutions in this test, patch
# up the daml-ledger dependency on daml-types.
sed -i"" "s|\"@daml/types\": \"0.0.0\"|\"@daml/types\": \"file:../daml-types\"|" daml-ledger/package.json
sed -i"" "s|\"@daml/types\": \"$SDK_VERSION\"|\"@daml/types\": \"file:../daml-types\"|" daml-ledger/package.json

# Build, lint, test.
cd build-and-lint-test
Expand Down

0 comments on commit b43b8d8

Please sign in to comment.