mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
a9828565db
* Disable http2 with Nix to work around segfaults CHANGELOG_BEGIN CHANGELOG_END * Disable http2 in dev-env calls to nix-build as well Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
23 lines
692 B
Bash
Executable File
23 lines
692 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -Eeuo pipefail
|
|
|
|
DADE_CURRENT_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
if [[ "$DADE_CURRENT_SCRIPT_DIR" =~ ^/nix/store/.* ]]; then
|
|
echo "Unable to release dev-env from Nix store. Are you running this from another repository than `da`?"
|
|
exit 1
|
|
fi
|
|
|
|
if [ $# -eq 1 ]; then
|
|
BUMP=$1
|
|
else
|
|
BUMP=patch
|
|
fi
|
|
|
|
DADE_REPO_ROOT="$DADE_CURRENT_SCRIPT_DIR/../../"
|
|
VERSION=$(cat "$DADE_REPO_ROOT/dev-env/VERSION")
|
|
semver bump $BUMP $VERSION > "$DADE_REPO_ROOT/dev-env/VERSION"
|
|
# Work around sporadic segfaults. See https://github.com/digital-asset/daml/pull/4427
|
|
nix-build --option http2 false "$DADE_REPO_ROOT/nix" -A cached.dev-env --no-out-link
|