daml/ci/cron/BUILD.bazel
Moritz Kiefer 0c7791bc1c
Fix docs cron (#8207)
The change in #8191 to publish daml on sql docs failed because the
versions.json and snapshots.json files don’t exist initially. This PR
fixes that by catching the exception and treating it as an empty file.

changelog_begin
changelog_end
2020-12-08 21:32:33 +01:00

40 lines
920 B
Python

# Copyright (c) 2020 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
load("//bazel_tools:haskell.bzl", "da_haskell_binary")
da_haskell_binary(
name = "cron",
srcs = glob(["src/**/*.hs"]),
hackage_deps = [
"aeson",
"async",
"base",
"bytestring",
"case-insensitive",
"containers",
"directory",
"extra",
"filepath",
"http-client",
"http-client-tls",
"http-types",
"monad-loops",
"network-uri",
"optparse-applicative",
"process",
"regex-tdfa",
"safe",
"safe-exceptions",
"semver",
"split",
"text",
"unordered-containers",
"utf8-string",
"vector",
],
src_strip_prefix = "src",
visibility = ["//visibility:public"],
deps = [],
)