Hardcode the canton version in BuildInfo for now (#17673)

* hardcode the canton version for now

* address comments
This commit is contained in:
Paul Brauner 2023-10-26 17:04:15 +02:00 committed by GitHub
parent 6592cb7bd5
commit b12eb2adb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,8 @@ load(
### build-info ###
# TODO(https://github.com/DACH-NY/canton/issues/15106): read 'version' from the canton repository
# once it is exposed in some file.
genrule(
name = "community_buildinfo_src",
outs = ["BuildInfo.scala"],
@ -23,10 +25,10 @@ cat << EOF > $@
package com.digitalasset.canton.buildinfo
case object BuildInfo {{
val version: String = "{sdk_version}"
val version: String = "2.7.0-SNAPSHOT"
val scalaVersion: String = "{scala_version}"
val sbtVersion: String = "bazel"
val damlLibrariesVersion: String = "2.7.0-SNAPSHOT"
val damlLibrariesVersion: String = "{sdk_version}"
val protocolVersions = List("3", "4", "5")
override val toString: String = {{
"version: %s, scalaVersion: %s, sbtVersion: %s, damlLibrariesVersion: %s, protocolVersions: %s".format(