diff --git a/dist/build-crates-debian-main.js b/dist/build-crates-debian-main.js index ad97226..7cb9b60 100644 --- a/dist/build-crates-debian-main.js +++ b/dist/build-crates-debian-main.js @@ -127365,7 +127365,8 @@ async function bump(path, version) { * @param git Git repository location. * @param branch Branch of git repository location. bumped to @param version. */ -async function bumpDependencies(path, pattern, version, branch) { +// eslint-disable-next-line @typescript-eslint/no-unused-vars +async function bumpDependencies(path, pattern, version, _branch) { core.startGroup(`Bumping ${pattern} dependencies in ${path} to ${version}`); const manifestPath = `${path}/Cargo.toml`; const manifestRaw = toml.get(manifestPath); @@ -127382,9 +127383,15 @@ async function bumpDependencies(path, pattern, version, branch) { for (const dep in manifest.dependencies) { if (pattern.test(dep)) { await toml.set(manifestPath, prefix.concat("dependencies", dep, "version"), version); - if (branch != undefined) { - await toml.set(manifestPath, prefix.concat("dependencies", dep, "branch"), branch); - } + // FIXME(fuzzypixelz): Previously, we set the branch of the git source in dependencies, + // but as all dependencies are assumed to be on crates.io anyway, this is not necessary. + // Still, the API of all related actions/workflows should be updated to reflect this. + // + // if (branch != undefined) { + // await toml.set(manifestPath, prefix.concat("dependencies", dep, "branch"), branch); + // } + await toml.unset(manifestPath, prefix.concat("dependencies", dep, "git")); + await toml.unset(manifestPath, prefix.concat("dependencies", dep, "branch")); } } for (const package_ of packages(path)) { diff --git a/dist/build-crates-standalone-main.js b/dist/build-crates-standalone-main.js index 068c909..a7aaa39 100644 --- a/dist/build-crates-standalone-main.js +++ b/dist/build-crates-standalone-main.js @@ -127350,7 +127350,8 @@ async function bump(path, version) { * @param git Git repository location. * @param branch Branch of git repository location. bumped to @param version. */ -async function bumpDependencies(path, pattern, version, branch) { +// eslint-disable-next-line @typescript-eslint/no-unused-vars +async function bumpDependencies(path, pattern, version, _branch) { core.startGroup(`Bumping ${pattern} dependencies in ${path} to ${version}`); const manifestPath = `${path}/Cargo.toml`; const manifestRaw = toml.get(manifestPath); @@ -127367,9 +127368,15 @@ async function bumpDependencies(path, pattern, version, branch) { for (const dep in manifest.dependencies) { if (pattern.test(dep)) { await toml.set(manifestPath, prefix.concat("dependencies", dep, "version"), version); - if (branch != undefined) { - await toml.set(manifestPath, prefix.concat("dependencies", dep, "branch"), branch); - } + // FIXME(fuzzypixelz): Previously, we set the branch of the git source in dependencies, + // but as all dependencies are assumed to be on crates.io anyway, this is not necessary. + // Still, the API of all related actions/workflows should be updated to reflect this. + // + // if (branch != undefined) { + // await toml.set(manifestPath, prefix.concat("dependencies", dep, "branch"), branch); + // } + await toml.unset(manifestPath, prefix.concat("dependencies", dep, "git")); + await toml.unset(manifestPath, prefix.concat("dependencies", dep, "branch")); } } for (const package_ of packages(path)) { diff --git a/dist/bump-crates-main.js b/dist/bump-crates-main.js index acb8903..ccf6b76 100644 --- a/dist/bump-crates-main.js +++ b/dist/bump-crates-main.js @@ -81071,7 +81071,8 @@ async function bump(path, version) { * @param git Git repository location. * @param branch Branch of git repository location. bumped to @param version. */ -async function bumpDependencies(path, pattern, version, branch) { +// eslint-disable-next-line @typescript-eslint/no-unused-vars +async function bumpDependencies(path, pattern, version, _branch) { _actions_core__WEBPACK_IMPORTED_MODULE_2__.startGroup(`Bumping ${pattern} dependencies in ${path} to ${version}`); const manifestPath = `${path}/Cargo.toml`; const manifestRaw = toml.get(manifestPath); @@ -81088,9 +81089,15 @@ async function bumpDependencies(path, pattern, version, branch) { for (const dep in manifest.dependencies) { if (pattern.test(dep)) { await toml.set(manifestPath, prefix.concat("dependencies", dep, "version"), version); - if (branch != undefined) { - await toml.set(manifestPath, prefix.concat("dependencies", dep, "branch"), branch); - } + // FIXME(fuzzypixelz): Previously, we set the branch of the git source in dependencies, + // but as all dependencies are assumed to be on crates.io anyway, this is not necessary. + // Still, the API of all related actions/workflows should be updated to reflect this. + // + // if (branch != undefined) { + // await toml.set(manifestPath, prefix.concat("dependencies", dep, "branch"), branch); + // } + await toml.unset(manifestPath, prefix.concat("dependencies", dep, "git")); + await toml.unset(manifestPath, prefix.concat("dependencies", dep, "branch")); } } for (const package_ of packages(path)) { diff --git a/dist/publish-crates-cargo-main.js b/dist/publish-crates-cargo-main.js index a6cb62c..a7b08c4 100644 --- a/dist/publish-crates-cargo-main.js +++ b/dist/publish-crates-cargo-main.js @@ -80959,7 +80959,8 @@ async function bump(path, version) { * @param git Git repository location. * @param branch Branch of git repository location. bumped to @param version. */ -async function bumpDependencies(path, pattern, version, branch) { +// eslint-disable-next-line @typescript-eslint/no-unused-vars +async function bumpDependencies(path, pattern, version, _branch) { core.startGroup(`Bumping ${pattern} dependencies in ${path} to ${version}`); const manifestPath = `${path}/Cargo.toml`; const manifestRaw = toml.get(manifestPath); @@ -80976,9 +80977,15 @@ async function bumpDependencies(path, pattern, version, branch) { for (const dep in manifest.dependencies) { if (pattern.test(dep)) { await toml.set(manifestPath, prefix.concat("dependencies", dep, "version"), version); - if (branch != undefined) { - await toml.set(manifestPath, prefix.concat("dependencies", dep, "branch"), branch); - } + // FIXME(fuzzypixelz): Previously, we set the branch of the git source in dependencies, + // but as all dependencies are assumed to be on crates.io anyway, this is not necessary. + // Still, the API of all related actions/workflows should be updated to reflect this. + // + // if (branch != undefined) { + // await toml.set(manifestPath, prefix.concat("dependencies", dep, "branch"), branch); + // } + await toml.unset(manifestPath, prefix.concat("dependencies", dep, "git")); + await toml.unset(manifestPath, prefix.concat("dependencies", dep, "branch")); } } for (const package_ of packages(path)) { diff --git a/dist/publish-crates-debian-main.js b/dist/publish-crates-debian-main.js index 1f7bfe1..30fbdb2 100644 --- a/dist/publish-crates-debian-main.js +++ b/dist/publish-crates-debian-main.js @@ -127345,7 +127345,8 @@ async function bump(path, version) { * @param git Git repository location. * @param branch Branch of git repository location. bumped to @param version. */ -async function bumpDependencies(path, pattern, version, branch) { +// eslint-disable-next-line @typescript-eslint/no-unused-vars +async function bumpDependencies(path, pattern, version, _branch) { core.startGroup(`Bumping ${pattern} dependencies in ${path} to ${version}`); const manifestPath = `${path}/Cargo.toml`; const manifestRaw = toml.get(manifestPath); @@ -127362,9 +127363,15 @@ async function bumpDependencies(path, pattern, version, branch) { for (const dep in manifest.dependencies) { if (pattern.test(dep)) { await toml.set(manifestPath, prefix.concat("dependencies", dep, "version"), version); - if (branch != undefined) { - await toml.set(manifestPath, prefix.concat("dependencies", dep, "branch"), branch); - } + // FIXME(fuzzypixelz): Previously, we set the branch of the git source in dependencies, + // but as all dependencies are assumed to be on crates.io anyway, this is not necessary. + // Still, the API of all related actions/workflows should be updated to reflect this. + // + // if (branch != undefined) { + // await toml.set(manifestPath, prefix.concat("dependencies", dep, "branch"), branch); + // } + await toml.unset(manifestPath, prefix.concat("dependencies", dep, "git")); + await toml.unset(manifestPath, prefix.concat("dependencies", dep, "branch")); } } for (const package_ of packages(path)) { diff --git a/dist/publish-crates-eclipse-main.js b/dist/publish-crates-eclipse-main.js index 7cddf3b..4a00bd6 100644 --- a/dist/publish-crates-eclipse-main.js +++ b/dist/publish-crates-eclipse-main.js @@ -127426,7 +127426,8 @@ async function bump(path, version) { * @param git Git repository location. * @param branch Branch of git repository location. bumped to @param version. */ -async function bumpDependencies(path, pattern, version, branch) { +// eslint-disable-next-line @typescript-eslint/no-unused-vars +async function bumpDependencies(path, pattern, version, _branch) { core.startGroup(`Bumping ${pattern} dependencies in ${path} to ${version}`); const manifestPath = `${path}/Cargo.toml`; const manifestRaw = toml.get(manifestPath); @@ -127443,9 +127444,15 @@ async function bumpDependencies(path, pattern, version, branch) { for (const dep in manifest.dependencies) { if (pattern.test(dep)) { await toml.set(manifestPath, prefix.concat("dependencies", dep, "version"), version); - if (branch != undefined) { - await toml.set(manifestPath, prefix.concat("dependencies", dep, "branch"), branch); - } + // FIXME(fuzzypixelz): Previously, we set the branch of the git source in dependencies, + // but as all dependencies are assumed to be on crates.io anyway, this is not necessary. + // Still, the API of all related actions/workflows should be updated to reflect this. + // + // if (branch != undefined) { + // await toml.set(manifestPath, prefix.concat("dependencies", dep, "branch"), branch); + // } + await toml.unset(manifestPath, prefix.concat("dependencies", dep, "git")); + await toml.unset(manifestPath, prefix.concat("dependencies", dep, "branch")); } } for (const package_ of packages(path)) { diff --git a/dist/publish-crates-github-main.js b/dist/publish-crates-github-main.js index d63b6b8..28bfb3b 100644 --- a/dist/publish-crates-github-main.js +++ b/dist/publish-crates-github-main.js @@ -127426,7 +127426,8 @@ async function bump(path, version) { * @param git Git repository location. * @param branch Branch of git repository location. bumped to @param version. */ -async function bumpDependencies(path, pattern, version, branch) { +// eslint-disable-next-line @typescript-eslint/no-unused-vars +async function bumpDependencies(path, pattern, version, _branch) { core.startGroup(`Bumping ${pattern} dependencies in ${path} to ${version}`); const manifestPath = `${path}/Cargo.toml`; const manifestRaw = toml.get(manifestPath); @@ -127443,9 +127444,15 @@ async function bumpDependencies(path, pattern, version, branch) { for (const dep in manifest.dependencies) { if (pattern.test(dep)) { await toml.set(manifestPath, prefix.concat("dependencies", dep, "version"), version); - if (branch != undefined) { - await toml.set(manifestPath, prefix.concat("dependencies", dep, "branch"), branch); - } + // FIXME(fuzzypixelz): Previously, we set the branch of the git source in dependencies, + // but as all dependencies are assumed to be on crates.io anyway, this is not necessary. + // Still, the API of all related actions/workflows should be updated to reflect this. + // + // if (branch != undefined) { + // await toml.set(manifestPath, prefix.concat("dependencies", dep, "branch"), branch); + // } + await toml.unset(manifestPath, prefix.concat("dependencies", dep, "git")); + await toml.unset(manifestPath, prefix.concat("dependencies", dep, "branch")); } } for (const package_ of packages(path)) { diff --git a/dist/publish-crates-homebrew-main.js b/dist/publish-crates-homebrew-main.js index 1f74846..e30871f 100644 --- a/dist/publish-crates-homebrew-main.js +++ b/dist/publish-crates-homebrew-main.js @@ -127330,7 +127330,8 @@ async function bump(path, version) { * @param git Git repository location. * @param branch Branch of git repository location. bumped to @param version. */ -async function bumpDependencies(path, pattern, version, branch) { +// eslint-disable-next-line @typescript-eslint/no-unused-vars +async function bumpDependencies(path, pattern, version, _branch) { core.startGroup(`Bumping ${pattern} dependencies in ${path} to ${version}`); const manifestPath = `${path}/Cargo.toml`; const manifestRaw = toml.get(manifestPath); @@ -127347,9 +127348,15 @@ async function bumpDependencies(path, pattern, version, branch) { for (const dep in manifest.dependencies) { if (pattern.test(dep)) { await toml.set(manifestPath, prefix.concat("dependencies", dep, "version"), version); - if (branch != undefined) { - await toml.set(manifestPath, prefix.concat("dependencies", dep, "branch"), branch); - } + // FIXME(fuzzypixelz): Previously, we set the branch of the git source in dependencies, + // but as all dependencies are assumed to be on crates.io anyway, this is not necessary. + // Still, the API of all related actions/workflows should be updated to reflect this. + // + // if (branch != undefined) { + // await toml.set(manifestPath, prefix.concat("dependencies", dep, "branch"), branch); + // } + await toml.unset(manifestPath, prefix.concat("dependencies", dep, "git")); + await toml.unset(manifestPath, prefix.concat("dependencies", dep, "branch")); } } for (const package_ of packages(path)) { diff --git a/src/cargo.ts b/src/cargo.ts index f9df71c..30bf5b5 100644 --- a/src/cargo.ts +++ b/src/cargo.ts @@ -164,7 +164,8 @@ export async function bump(path: string, version: string) { * @param git Git repository location. * @param branch Branch of git repository location. bumped to @param version. */ -export async function bumpDependencies(path: string, pattern: RegExp, version: string, branch?: string) { +// eslint-disable-next-line @typescript-eslint/no-unused-vars +export async function bumpDependencies(path: string, pattern: RegExp, version: string, _branch?: string) { core.startGroup(`Bumping ${pattern} dependencies in ${path} to ${version}`); const manifestPath = `${path}/Cargo.toml`; const manifestRaw = toml.get(manifestPath); @@ -182,9 +183,16 @@ export async function bumpDependencies(path: string, pattern: RegExp, version: s for (const dep in manifest.dependencies) { if (pattern.test(dep)) { await toml.set(manifestPath, prefix.concat("dependencies", dep, "version"), version); - if (branch != undefined) { - await toml.set(manifestPath, prefix.concat("dependencies", dep, "branch"), branch); - } + + // FIXME(fuzzypixelz): Previously, we set the branch of the git source in dependencies, + // but as all dependencies are assumed to be on crates.io anyway, this is not necessary. + // Still, the API of all related actions/workflows should be updated to reflect this. + // + // if (branch != undefined) { + // await toml.set(manifestPath, prefix.concat("dependencies", dep, "branch"), branch); + // } + await toml.unset(manifestPath, prefix.concat("dependencies", dep, "git")); + await toml.unset(manifestPath, prefix.concat("dependencies", dep, "branch")); } }