Skip to content

Commit

Permalink
fix: Incorrect cross usage predicate
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzypixelz committed Apr 3, 2024
1 parent 05bc47a commit 0cbb0a8
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/build-crates-debian-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -128405,7 +128405,7 @@ async function build(path, target) {
const crossContents = await fs.readFile(join(path, "Cross.toml"), "utf-8");
const crossManifest = toml.parse(crossContents);
sh(`rustup target add ${target}`, { cwd: path });
const command = target in crossManifest ? ["cross"] : ["cargo"];
const command = target in crossManifest.target ? ["cross"] : ["cargo"];
command.push("build", "--release", "--bins", "--lib", "--target", target);
sh(command.join(" "), { cwd: path });
}
Expand Down
2 changes: 1 addition & 1 deletion dist/build-crates-standalone-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -128404,7 +128404,7 @@ async function build(path, target) {
const crossContents = await promises_.readFile((0,external_path_.join)(path, "Cross.toml"), "utf-8");
const crossManifest = parse(crossContents);
command_sh(`rustup target add ${target}`, { cwd: path });
const command = target in crossManifest ? ["cross"] : ["cargo"];
const command = target in crossManifest.target ? ["cross"] : ["cargo"];
command.push("build", "--release", "--bins", "--lib", "--target", target);
command_sh(command.join(" "), { cwd: path });
}
Expand Down
2 changes: 1 addition & 1 deletion dist/bump-crates-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -82263,7 +82263,7 @@ async function build(path, target) {
const crossContents = await fs.readFile(join(path, "Cross.toml"), "utf-8");
const crossManifest = toml.parse(crossContents);
sh(`rustup target add ${target}`, { cwd: path });
const command = target in crossManifest ? ["cross"] : ["cargo"];
const command = target in crossManifest.target ? ["cross"] : ["cargo"];
command.push("build", "--release", "--bins", "--lib", "--target", target);
sh(command.join(" "), { cwd: path });
}
Expand Down
2 changes: 1 addition & 1 deletion dist/publish-crates-cargo-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -82263,7 +82263,7 @@ async function build(path, target) {
const crossContents = await fs.readFile(join(path, "Cross.toml"), "utf-8");
const crossManifest = toml.parse(crossContents);
sh(`rustup target add ${target}`, { cwd: path });
const command = target in crossManifest ? ["cross"] : ["cargo"];
const command = target in crossManifest.target ? ["cross"] : ["cargo"];
command.push("build", "--release", "--bins", "--lib", "--target", target);
sh(command.join(" "), { cwd: path });
}
Expand Down
2 changes: 1 addition & 1 deletion dist/publish-crates-debian-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -128427,7 +128427,7 @@ async function build(path, target) {
const crossContents = await fs.readFile(join(path, "Cross.toml"), "utf-8");
const crossManifest = toml.parse(crossContents);
sh(`rustup target add ${target}`, { cwd: path });
const command = target in crossManifest ? ["cross"] : ["cargo"];
const command = target in crossManifest.target ? ["cross"] : ["cargo"];
command.push("build", "--release", "--bins", "--lib", "--target", target);
sh(command.join(" "), { cwd: path });
}
Expand Down
2 changes: 1 addition & 1 deletion dist/publish-crates-eclipse-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -128424,7 +128424,7 @@ async function build(path, target) {
const crossContents = await fs.readFile(join(path, "Cross.toml"), "utf-8");
const crossManifest = toml.parse(crossContents);
sh(`rustup target add ${target}`, { cwd: path });
const command = target in crossManifest ? ["cross"] : ["cargo"];
const command = target in crossManifest.target ? ["cross"] : ["cargo"];
command.push("build", "--release", "--bins", "--lib", "--target", target);
sh(command.join(" "), { cwd: path });
}
Expand Down
2 changes: 1 addition & 1 deletion dist/publish-crates-github-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -128405,7 +128405,7 @@ async function build(path, target) {
const crossContents = await fs.readFile(join(path, "Cross.toml"), "utf-8");
const crossManifest = toml.parse(crossContents);
sh(`rustup target add ${target}`, { cwd: path });
const command = target in crossManifest ? ["cross"] : ["cargo"];
const command = target in crossManifest.target ? ["cross"] : ["cargo"];
command.push("build", "--release", "--bins", "--lib", "--target", target);
sh(command.join(" "), { cwd: path });
}
Expand Down
2 changes: 1 addition & 1 deletion dist/publish-crates-homebrew-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -128426,7 +128426,7 @@ async function build(path, target) {
const crossContents = await fs.readFile(join(path, "Cross.toml"), "utf-8");
const crossManifest = toml.parse(crossContents);
sh(`rustup target add ${target}`, { cwd: path });
const command = target in crossManifest ? ["cross"] : ["cargo"];
const command = target in crossManifest.target ? ["cross"] : ["cargo"];
command.push("build", "--release", "--bins", "--lib", "--target", target);
sh(command.join(" "), { cwd: path });
}
Expand Down
2 changes: 1 addition & 1 deletion src/cargo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export async function build(path: string, target: string) {

sh(`rustup target add ${target}`, { cwd: path });

const command = target in crossManifest ? ["cross"] : ["cargo"];
const command = target in crossManifest.target ? ["cross"] : ["cargo"];
command.push("build", "--release", "--bins", "--lib", "--target", target);
sh(command.join(" "), { cwd: path });
}
Expand Down

0 comments on commit 0cbb0a8

Please sign in to comment.