Skip to content

Commit

Permalink
fix: Wrong repo path in build-crates-standalone (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzypixelz authored Apr 9, 2024
1 parent 854aee1 commit 9ef1b1f
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 30 deletions.
12 changes: 6 additions & 6 deletions dist/build-crates-standalone-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -128496,15 +128496,15 @@ function setup() {
async function main(input) {
try {
await installBinaryCached("cross");
const repo = input.repo.split("/")[1];
// 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.
const repo = process.env["GITHUB_ACTIONS"] != undefined ? process.cwd() : input.repo.split("/").at(1);
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,
path: repo,
});
input.version ??= describe(repo);
input.target ??= hostTarget();
Expand Down
12 changes: 6 additions & 6 deletions dist/publish-crates-eclipse-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -128516,15 +128516,15 @@ function setup() {
async function main(input) {
try {
await cargo.installBinaryCached("cross");
const repo = input.repo.split("/")[1];
// 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.
const repo = process.env["GITHUB_ACTIONS"] != undefined ? process.cwd() : input.repo.split("/").at(1);
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,
path: repo,
});
input.version ??= git.describe(repo);
input.target ??= cargo.hostTarget();
Expand Down
12 changes: 6 additions & 6 deletions dist/publish-crates-github-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -128573,15 +128573,15 @@ function build_crates_standalone_setup() {
async function build_crates_standalone_main(input) {
try {
await cargo.installBinaryCached("cross");
const repo = input.repo.split("/")[1];
// 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.
const repo = process.env["GITHUB_ACTIONS"] != undefined ? process.cwd() : input.repo.split("/").at(1);
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,
path: repo,
});
input.version ??= git.describe(repo);
input.target ??= cargo.hostTarget();
Expand Down
12 changes: 6 additions & 6 deletions dist/publish-crates-homebrew-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -128518,15 +128518,15 @@ function setup() {
async function main(input) {
try {
await cargo.installBinaryCached("cross");
const repo = input.repo.split("/")[1];
// 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.
const repo = process.env["GITHUB_ACTIONS"] != undefined ? process.cwd() : input.repo.split("/").at(1);
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,
path: repo,
});
input.version ??= git.describe(repo);
input.target ??= cargo.hostTarget();
Expand Down
12 changes: 6 additions & 6 deletions src/build-crates-standalone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ export async function main(input: Input) {
try {
await cargo.installBinaryCached("cross");

const repo = input.repo.split("/")[1];
// 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.
const repo = process.env["GITHUB_ACTIONS"] != undefined ? process.cwd() : input.repo.split("/").at(1);

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,
path: repo,
});

input.version ??= git.describe(repo);
Expand Down

0 comments on commit 9ef1b1f

Please sign in to comment.