mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
4794454a70
* Rename //bazel_tools:match-{cabal=>golden}-file * Generate and check hash file for contents of //compiler/damlc/tests:platform-independence.dar * Add pre-commit hook to test //compiler/damlc/tests:platform-independence-dar-hash-file-matches * Print info when //bazel_tools:match-golden-file fails * platform-independence-dar-check pre-commit hook runs depending on env var * Skip platform-independence-check if RUN_PLATFORM_INDEPENDENCE_CHECK is unset * Document dar_hash_file rules * move platform-independence-checks warning to .envrc * implement generate_dar_hash_file genrule in python in particular, this allows us to produce the same output on all platforms * fix windows * Update rules_daml/daml.bzl * bytes.replace does not operate in place
10 lines
315 B
Bash
Executable File
10 lines
315 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (c) 2023 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set -euo pipefail
|
|
|
|
if [ "$RUN_PLATFORM_INDEPENDENCE_CHECK" = "yes" ]; then
|
|
bazel test //compiler/damlc/tests:platform-independence-dar-hash-file-matches
|
|
fi
|