Skip to content

Commit

Permalink
Merge pull request oras-project#86 from Amulyam24/main
Browse files Browse the repository at this point in the history
consider ARCH as ppc64le when rust arch is powerpc64
  • Loading branch information
flavio authored Jun 19, 2023
2 parents 5c23325 + 5c05097 commit 28daf78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1380,6 +1380,8 @@ const X86: &str = "x86";
const AMD: &str = "amd";
const ARM64: &str = "arm64";
const AARCH64: &str = "aarch64";
const POWERPC64: &str = "powerpc64";
const PPC64LE: &str = "ppc64le";

fn go_arch() -> &'static str {
// Massage Rust Architecture vars to GO equivalent:
Expand All @@ -1389,6 +1391,7 @@ fn go_arch() -> &'static str {
X86_64 => AMD64,
X86 => AMD,
AARCH64 => ARM64,
POWERPC64 => PPC64LE,
other => other,
}
}
Expand Down

0 comments on commit 28daf78

Please sign in to comment.