@@ -63553,15 +63553,6 @@ async function setGitBranch(manifestPath, pattern, gitUrl, gitBranch) {
6355363553 }
6355463554 }
6355563555}
63556- function setCargoLockVersion(cargoLockPath) {
63557- core2.startGroup(`Setting Cargo.lock version`);
63558- const record = toml.get(cargoLockPath, ["version"]);
63559- if (record != void 0 && record["version"] != 3) {
63560- const sedCommand = `sed -i.bak 's/^version = [[:digit:]]$/version = 3/' ${cargoLockPath}`;
63561- sh(sedCommand);
63562- sh(`rm -f ${cargoLockPath}.bak`);
63563- }
63564- }
6356563556async function installBinaryCached(name) {
6356663557 const env = { CARGO_REGISTRY_DEFAULT: "crates-io" };
6356763558 const version2 = config.lock.cratesio[name];
@@ -63595,8 +63586,7 @@ function setup() {
6359563586 releaseBranch,
6359663587 repo,
6359763588 path: path === "" ? void 0 : path,
63598- toolchain: toolchain === "" ? "1.75.0" : toolchain,
63599- // Default to 1.75.0 to avoid updating Cargo.lock file version.
63589+ toolchain: toolchain === "" ? "1.93.0" : toolchain,
6360063590 githubToken,
6360163591 githubUser: githubUser === "" ? "eclipse-zenoh-bot" : githubUser,
6360263592 depsRegExp: depsPattern === "" ? void 0 : new RegExp(depsPattern),
@@ -63612,14 +63602,6 @@ async function main(input) {
6361263602 sh(`git clone --recursive --single-branch --branch ${input.releaseBranch} ${remote}`);
6361363603 sh(`git switch -c ${input.githubUser}/post-release-${input.version}`, { cwd: repo });
6361463604 sh(`ls ${workspace}`);
63615- const cargoLockPaths = sh(`find ${workspace} -name "Cargo.lock"`).split("\n").filter((r) => r);
63616- for (const path2 of cargoLockPaths) {
63617- setCargoLockVersion(path2);
63618- if (sh("git diff", { cwd: repo, check: false })) {
63619- sh("find . -name 'Cargo.lock' | xargs git add", { cwd: repo });
63620- sh(`git commit --message 'chore: Update Cargo.lock version ${path2}'`, { cwd: repo, env: gitEnv });
63621- }
63622- }
6362363605 const cargoPaths = sh(`find ${workspace} -name "Cargo.toml*"`).split("\n").filter((r) => r);
6362463606 const pathsToCheck = [];
6362563607 let path;
0 commit comments