Skip to content

Commit e4b586d

Browse files
actions-userclaude
andcommitted
fix: use DAML release version instead of Canton internal version in Formula
- Updated Formula version from '3.4.0-snapshot.20250715.16432.0.vcd4fe703' to 'v3.4.0-snapshot.20250723.0' - Fixed update script to use release.damlTag instead of release.cantonVersion for Formula version - Corrected console messages to reflect DAML version usage - Fixed Java version test assertion in Formula - Ensures consistency with DAML ecosystem versioning 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f0a5e88 commit e4b586d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Formula/canton.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class Canton < Formula
55

66
url "https://github.com/digital-asset/daml/releases/download/v3.4.0-snapshot.20250723.0/canton-open-source-3.4.0-snapshot.20250715.16432.0.vcd4fe703.tar.gz"
77
sha256 "04f33ccadd9651b4be8fbbbd0c33039795a8ee86e3e07d2d9955200bce4ce74a"
8-
version "3.4.0-snapshot.20250715.16432.0.vcd4fe703"
8+
version "v3.4.0-snapshot.20250723.0"
99

1010
# Java 11+ is required (recommend 17 for best compatibility)
1111
depends_on "openjdk@17" => :recommended
@@ -40,7 +40,7 @@ def caveats
4040

4141
# Test that Java is available (required for Canton to run)
4242
java_version = shell_output("java -version 2>&1")
43-
assert_match(/version "3.4.0-snapshot.20250617.16217.0.vbdf62919"/, java_version)
43+
assert_match(/version "(1\.)?(8|9|11|17|21)/, java_version)
4444

4545
# Test that Canton can show help (basic functionality test)
4646
output = shell_output("#{bin}/canton --help 2>&1", 0)

scripts/update-homebrew-formula.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ async function updateFormula(
8888
release: CantonRelease,
8989
sha256: string,
9090
): Promise<void> {
91-
console.log(`Updating Formula/canton.rb with ${release.cantonVersion}...`);
91+
console.log(`Updating Formula/canton.rb with ${release.damlTag}...`);
9292

9393
try {
9494
const formulaContent = await fs.readFile(FORMULA_PATH, "utf-8");
@@ -108,7 +108,7 @@ async function updateFormula(
108108
// Update version
109109
const versionUpdated = sha256Updated.replace(
110110
/version "[^"]*"/,
111-
`version "${release.cantonVersion}"`,
111+
`version "${release.damlTag}"`,
112112
);
113113

114114
await fs.writeFile(FORMULA_PATH, versionUpdated);
@@ -292,7 +292,7 @@ async function updateHomebrewFormula(): Promise<void> {
292292
} else {
293293
console.log(`\nProcessed ${processedCount} new Canton versions`);
294294
if (mostRecentPrerelease) {
295-
console.log(`Updated formula to: ${mostRecentPrerelease.cantonVersion}`);
295+
console.log(`Updated formula to: ${mostRecentPrerelease.damlTag}`);
296296
}
297297
}
298298

0 commit comments

Comments
 (0)