Skip to content

Commit 74986d1

Browse files
Revert "claude: Read full version from version.txt in packaging config"
This reverts commit 059b457.
1 parent f7e4e86 commit 74986d1

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

‎package/src/common/config.ts‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import { join } from "../../../src/deno_ral/path.ts";
99
import { info } from "../../../src/deno_ral/log.ts";
10-
import { existsSync } from "../../../src/deno_ral/fs.ts";
1110

1211
import { getEnv } from "../util/utils.ts";
1312

@@ -60,20 +59,6 @@ export function readConfiguration(
6059
const root = getEnv("QUARTO_ROOT");
6160
const src = getEnv("QUARTO_SRC_PATH");
6261

63-
// If version is incomplete (e.g., "1.9" from configuration file),
64-
// try to read the full version from version.txt
65-
if (version && version.split(".").length < 3) {
66-
const versionTxtPath = join(root, "version.txt");
67-
if (existsSync(versionTxtPath)) {
68-
const versionTxt = Deno.readTextFileSync(versionTxtPath).trim();
69-
// Only use version.txt if it starts with the same major.minor
70-
// (e.g., version="1.9" and versionTxt="1.9.17")
71-
if (versionTxt.startsWith(version + ".")) {
72-
version = versionTxt;
73-
}
74-
}
75-
}
76-
7762
const pkg = getEnv("QUARTO_PACKAGE_PATH") || "package";
7863
const out = join(pkg, getEnv("QUARTO_OUT_DIR") || "out");
7964

0 commit comments

Comments
 (0)