diff --git a/.github/workflows/enforce-linking-issues.yml b/.github/workflows/enforce-linking-issues.yml deleted file mode 100644 index ebeddd9..0000000 --- a/.github/workflows/enforce-linking-issues.yml +++ /dev/null @@ -1,10 +0,0 @@ -name: Enforce linking issues - -on: - pull_request_target: - types: [opened, edited, labeled] - -jobs: - main: - uses: eclipse-zenoh/zenoh/.github/workflows/enforce-linking-issues.yml@main - secrets: inherit diff --git a/dist/build-crates-standalone-main.js b/dist/build-crates-standalone-main.js index 5c3486f..196443b 100644 --- a/dist/build-crates-standalone-main.js +++ b/dist/build-crates-standalone-main.js @@ -128497,7 +128497,15 @@ async function main(input) { try { await installBinaryCached("cross"); const repo = input.repo.split("/")[1]; - cloneFromGitHub(input.repo, { branch: input.branch, token: input.githubToken }); + cloneFromGitHub(input.repo, { + branch: input.branch, + token: input.githubToken, + // NOTE(fuzzypixelz): We clone the repository into the current directory + // to avoid long paths on Windows, where MSBuild fails on the windows-2019 + // GitHub-hosted runner because it doesn't support paths longer than 260 + // characters. + path: process.env["GITHUB_ACTIONS"] != undefined ? process.cwd() : undefined, + }); input.version ??= describe(repo); input.target ??= hostTarget(); await build(repo, input.target); diff --git a/dist/publish-crates-cargo-main.js b/dist/publish-crates-cargo-main.js index dff1ef4..d621c5a 100644 --- a/dist/publish-crates-cargo-main.js +++ b/dist/publish-crates-cargo-main.js @@ -82401,7 +82401,7 @@ async function publishToEstuary(input, repo, registry, registryDepsRegExp, branc CARGO_REGISTRY_DEFAULT: registry.name, [`CARGO_REGISTRIES_${registry.name.toUpperCase()}_TOKEN`]: registry.token, }; - publish(path, env); + publish(path, env, true); } function publishToCratesIo(input, repo, branch) { clone(input, repo, branch); @@ -82411,7 +82411,7 @@ function publishToCratesIo(input, repo, branch) { }; publish(path, env); } -function publish(path, env) { +function publish(path, env, allowDirty = false) { const options = { env, cwd: path, @@ -82419,7 +82419,11 @@ function publish(path, env) { }; for (const package_ of packagesOrdered(path)) { if (package_.publish == undefined || package_.publish) { - command_sh(`cargo publish --manifest-path ${package_.manifestPath}`, options); + const command = ["cargo", "publish", "--manifest-path", package_.manifestPath]; + if (allowDirty) { + command.push("--allow-dirty"); + } + command_sh(command.join(" "), options); } } command_sh("cargo clean", options); diff --git a/dist/publish-crates-eclipse-main.js b/dist/publish-crates-eclipse-main.js index 1456f70..af387a9 100644 --- a/dist/publish-crates-eclipse-main.js +++ b/dist/publish-crates-eclipse-main.js @@ -128517,7 +128517,15 @@ async function main(input) { try { await cargo.installBinaryCached("cross"); const repo = input.repo.split("/")[1]; - git.cloneFromGitHub(input.repo, { branch: input.branch, token: input.githubToken }); + git.cloneFromGitHub(input.repo, { + branch: input.branch, + token: input.githubToken, + // NOTE(fuzzypixelz): We clone the repository into the current directory + // to avoid long paths on Windows, where MSBuild fails on the windows-2019 + // GitHub-hosted runner because it doesn't support paths longer than 260 + // characters. + path: process.env["GITHUB_ACTIONS"] != undefined ? process.cwd() : undefined, + }); input.version ??= git.describe(repo); input.target ??= cargo.hostTarget(); await cargo.build(repo, input.target); diff --git a/dist/publish-crates-github-main.js b/dist/publish-crates-github-main.js index 3bbbd03..8034160 100644 --- a/dist/publish-crates-github-main.js +++ b/dist/publish-crates-github-main.js @@ -128574,7 +128574,15 @@ async function build_crates_standalone_main(input) { try { await cargo.installBinaryCached("cross"); const repo = input.repo.split("/")[1]; - git.cloneFromGitHub(input.repo, { branch: input.branch, token: input.githubToken }); + git.cloneFromGitHub(input.repo, { + branch: input.branch, + token: input.githubToken, + // NOTE(fuzzypixelz): We clone the repository into the current directory + // to avoid long paths on Windows, where MSBuild fails on the windows-2019 + // GitHub-hosted runner because it doesn't support paths longer than 260 + // characters. + path: process.env["GITHUB_ACTIONS"] != undefined ? process.cwd() : undefined, + }); input.version ??= git.describe(repo); input.target ??= cargo.hostTarget(); await cargo.build(repo, input.target); diff --git a/dist/publish-crates-homebrew-main.js b/dist/publish-crates-homebrew-main.js index e0dba0e..620f91b 100644 --- a/dist/publish-crates-homebrew-main.js +++ b/dist/publish-crates-homebrew-main.js @@ -128519,7 +128519,15 @@ async function main(input) { try { await cargo.installBinaryCached("cross"); const repo = input.repo.split("/")[1]; - git.cloneFromGitHub(input.repo, { branch: input.branch, token: input.githubToken }); + git.cloneFromGitHub(input.repo, { + branch: input.branch, + token: input.githubToken, + // NOTE(fuzzypixelz): We clone the repository into the current directory + // to avoid long paths on Windows, where MSBuild fails on the windows-2019 + // GitHub-hosted runner because it doesn't support paths longer than 260 + // characters. + path: process.env["GITHUB_ACTIONS"] != undefined ? process.cwd() : undefined, + }); input.version ??= git.describe(repo); input.target ??= cargo.hostTarget(); await cargo.build(repo, input.target); diff --git a/src/build-crates-standalone.ts b/src/build-crates-standalone.ts index 714d825..7f5e872 100644 --- a/src/build-crates-standalone.ts +++ b/src/build-crates-standalone.ts @@ -43,7 +43,15 @@ export async function main(input: Input) { const repo = input.repo.split("/")[1]; - git.cloneFromGitHub(input.repo, { branch: input.branch, token: input.githubToken }); + git.cloneFromGitHub(input.repo, { + branch: input.branch, + token: input.githubToken, + // NOTE(fuzzypixelz): We clone the repository into the current directory + // to avoid long paths on Windows, where MSBuild fails on the windows-2019 + // GitHub-hosted runner because it doesn't support paths longer than 260 + // characters. + path: process.env["GITHUB_ACTIONS"] != undefined ? process.cwd() : undefined, + }); input.version ??= git.describe(repo); input.target ??= cargo.hostTarget(); diff --git a/src/publish-crates-cargo.ts b/src/publish-crates-cargo.ts index 7025bc2..90a68f0 100644 --- a/src/publish-crates-cargo.ts +++ b/src/publish-crates-cargo.ts @@ -122,7 +122,7 @@ async function publishToEstuary( [`CARGO_REGISTRIES_${registry.name.toUpperCase()}_TOKEN`]: registry.token, }; - publish(path, env); + publish(path, env, true); } function publishToCratesIo(input: Input, repo: string, branch?: string) { @@ -136,7 +136,7 @@ function publishToCratesIo(input: Input, repo: string, branch?: string) { publish(path, env); } -function publish(path: string, env: NodeJS.ProcessEnv) { +function publish(path: string, env: NodeJS.ProcessEnv, allowDirty: boolean = false) { const options = { env, cwd: path, @@ -145,7 +145,11 @@ function publish(path: string, env: NodeJS.ProcessEnv) { for (const package_ of cargo.packagesOrdered(path)) { if (package_.publish == undefined || package_.publish) { - sh(`cargo publish --manifest-path ${package_.manifestPath}`, options); + const command = ["cargo", "publish", "--manifest-path", package_.manifestPath]; + if (allowDirty) { + command.push("--allow-dirty"); + } + sh(command.join(" "), options); } }