Skip to content

Commit

Permalink
fix: macos -> darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
pxseu committed Oct 9, 2022
1 parent 2ff1c21 commit 1a2d629
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/commands/deploy/local/util.rs
@@ -1,5 +1,4 @@
use std::path::PathBuf;

use std::vec;

use anyhow::{anyhow, bail, ensure, Result};
Expand Down Expand Up @@ -70,7 +69,7 @@ pub async fn install_nixpacks(path: &PathBuf) -> Result<()> {
fn get_nixpacks_platform() -> Result<&'static str> {
match sys_info::os_type()?.to_lowercase().as_str() {
"linux" => Ok("unknown-linux-musl"),
"macos" => Ok("apple-darwin"),
"darwin" => Ok("apple-darwin"),
"windows" => Ok("pc-windows-msvc"),
_ => bail!("Unsupported platform"),
}
Expand Down

0 comments on commit 1a2d629

Please sign in to comment.