daml/compatibility/update-versions.sh
Gary Verhaegen 166842e227
update versions bbased on git tags (#6580)
* update versions bbased on git tags

We currently run the update script as part of the release process. This
causes an issue (highlighted by @cocreature in #6560): the update script
currently relies on querying the docs website to get the list of
versions, but the docs website is updated on a cron, which means by the
time we run the update script it is not up-to-date yet.

This PR changes the update script to instead rely on the local git repo
and its list of tags, as that is updated synchronously.

CHANGELOG_BEGIN
CHANGELOG_END

* test

* revert test
2020-07-02 16:37:13 +00:00

16 lines
508 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright (c) 2020 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
set -euo pipefail
cd "$(dirname "$0")"
eval "$(../dev-env/bin/dade-assist)"
# Note: not using Bazel run so we actually have access to local files to run
# `git tag`
bazel run --run_under "cd $PWD &&" //versions:update-versions -- -o $PWD/versions.bzl
# We refer to latest_stable_version so this might need changing.
bazel run @unpinned_maven//:pin