daml/bazel_tools/create_workspace.bzl
Moritz Kiefer 970d9891fd
Disable all the TS stuff on Windows (#4163)
* Disable all the TS stuff on Windows

changelog_begin
changelog_end

* disable jest explicitly

* more disabling

* :sadpanda:

* Replace @language_support_ts_deps on Windows

Provides dummy content so that `load` commands are still valid on
Windows without `yarn_install`.

* disable daml-ledger-fetch on windows

* shut up buildifier

Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2020-01-22 16:07:20 +01:00

14 lines
388 B
Python

# Copyright (c) 2020 The DAML Authors. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
def _create_workspace_impl(repository_ctx):
for (filename, content) in repository_ctx.attr.files.items():
repository_ctx.file(filename, content, False)
create_workspace = repository_rule(
_create_workspace_impl,
attrs = {
"files": attr.string_dict(),
},
)