forked from digital-asset/daml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
language: put sdk versions into package.json (digital-asset#4122)
* language: put sdk versions into package.json The typescript library versions of our support libraries are now given by the sdk version. CHANGELOG_BEGIN CHANGELOG_END * removed local field * better placeholders * consistent SDK_VERSION * sed sdkversion in test script
- Loading branch information
Robin Krom
authored
Jan 21, 2020
1 parent
4cc1427
commit ad93252
Showing
9 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Copyright (c) 2020 The DAML Authors. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
_sdk_version_bzl_template = """ | ||
sdk_version = "{SDK_VERSION}" | ||
""" | ||
|
||
def _sdk_version_impl(repository_ctx): | ||
version = repository_ctx.read(repository_ctx.attr.version).strip() | ||
sdk_version_substitutions = { | ||
"SDK_VERSION": version, | ||
} | ||
repository_ctx.file( | ||
"sdk_version.bzl", | ||
_sdk_version_bzl_template.format(**sdk_version_substitutions), | ||
False, | ||
) | ||
repository_ctx.file( | ||
"BUILD", | ||
"", | ||
False, | ||
) | ||
|
||
sdk_version = repository_rule( | ||
implementation = _sdk_version_impl, | ||
attrs = {"version": attr.label(default = "//:VERSION")}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters