Skip to content

Commit

Permalink
Fixed: Manually install requirements if problem with compiled. (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang authored Nov 25, 2024
1 parent 0d110ea commit 38c461e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/virtualEnvironment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export class VirtualEnvironment {

const installCmd = ['pip', 'install', '-r', this.requirementsCompiledPath, '--index-strategy', 'unsafe-best-match'];
const { exitCode } = await this.runUvCommandAsync(installCmd, callbacks);
if (exitCode == 0) {
if (exitCode !== 0) {
log.error(
`Failed to install requirements.compiled: exit code ${exitCode}. Falling back to installing requirements.txt`
);
Expand Down

0 comments on commit 38c461e

Please sign in to comment.