Skip to content

Commit 9cba845

Browse files
committed
[static] fix damlDarLock checks
Signed-off-by: Itai Segall <[email protected]>
1 parent 33cc2af commit 9cba845

File tree

1 file changed

+5
-1
lines changed
  • build-tools/dar-lock-checker/src/main/scala/org/lfdecentralizedtrust/splice/build_tools

1 file changed

+5
-1
lines changed

build-tools/dar-lock-checker/src/main/scala/org/lfdecentralizedtrust/splice/build_tools/DarLockChecker.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ object DarLockChecker {
8585
): Unit = {
8686
val lastReleaseNumber = File("LATEST_RELEASE").contentAsString.strip
8787
val lastReleaseDarLock =
88-
s"git show refs/remotes/origin/release-line-$lastReleaseNumber:daml/dars.lock".!!
88+
Try(s"git show refs/remotes/origin/release-line-$lastReleaseNumber:daml/dars.lock".!!)
89+
.getOrElse(
90+
// When running in forks, origin might not have the release line, so we download the file explicitly from github
91+
s"curl -sSLf https://raw.githubusercontent.com/hyperledger-labs/splice/release-line-$lastReleaseNumber/daml/dars.lock".!!
92+
)
8993
val lastReleaseDars = parseDarsLock(lastReleaseDarLock)
9094
val mismatches = actual.flatMap { case (pkg, currentHash) =>
9195
lastReleaseDars

0 commit comments

Comments
 (0)