Skip to content

Commit

Permalink
feat(cli): allow specifying an alternative cargo binary via CARGO e…
Browse files Browse the repository at this point in the history
…nv var (#1181)
  • Loading branch information
messense committed May 14, 2022
1 parent d6c755c commit 1399288
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ export class BuildCommand extends Command {
]
.filter((flag) => Boolean(flag))
.join(' ')
const cargoCommand = `cargo build ${externalFlags}`
const cargo = process.env.CARGO ?? 'cargo'
const cargoCommand = `${cargo} build ${externalFlags}`
const intermediateTypeFile = join(tmpdir(), `type_def.${Date.now()}.tmp`)
debug(`Run ${chalk.green(cargoCommand)}`)
const additionalEnv = {}
Expand Down

0 comments on commit 1399288

Please sign in to comment.