Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The CPU architecture "arm64" is incompatible with this module #347

Closed
2 tasks done
maatthc opened this issue Nov 5, 2021 · 6 comments · Fixed by #445
Closed
2 tasks done

The CPU architecture "arm64" is incompatible with this module #347

maatthc opened this issue Nov 5, 2021 · 6 comments · Fixed by #445

Comments

@maatthc
Copy link

maatthc commented Nov 5, 2021

I'm trying to use Arm-based AWS Graviton2 processors on EC2 but apparently aarch64 is not supported:

warning Resolution field "@pact-foundation/pact-node@10.12.2" is incompatible with requested version "@pact-foundation/pact-node@^10.13.8" [2/4] Fetching packages... error @pact-foundation/pact-node@10.12.2: The CPU architecture "arm64" is incompatible with this module. error Found incompatible module.

$ uname -mpio : aarch64 aarch64 aarch64 GNU/Linux

Checklist

Before making a feature request, I have:

Feature description

Would be nice to have support to aarch64 as Amazon and Oracle Cloud have good offers for instances on this platform.

Use case

Run CI/CD pipelines on ARM processors.

@mefellows
Copy link
Member

Might be similar to #271 #264 where it "works" if we allow it as an architecture. But we certainly don't test for it.

If you force install it does it actually work @maatthc ?

@maatthc
Copy link
Author

maatthc commented Nov 5, 2021

The executable published by pact-ruby-standalone are not compatible with Linux on arm64 - so basically that needs to start there..

@TimothyJones
Copy link
Contributor

TimothyJones commented Nov 5, 2021 via email

@mefellows
Copy link
Member

Ah of course. We should be able to compile the new rust core for ARM.

We'll not be supporting arm for the current stable versions of Pact Node, because the standalone is unlikely to support arm anytime soon either.

If you came here because you use Pact JS, you can try out (locally) the beta version which doesn't use Ruby
in the core: https://github.com/pact-foundation/pact-js/#pact-js-v3. We'll need to add arm support for that though.

@YOU54F
Copy link
Member

YOU54F commented Jul 6, 2023

pact-js-core now supports linux arm64 for both the pact ruby standalone binaries, and the pact ffi

you can find a version with support for both in

https://www.npmjs.com/package/@pact-foundation/pact-core/v/13.15.0

@YOU54F YOU54F closed this as completed Jul 6, 2023
@mefellows
Copy link
Member

Amazing 🎉 !

@YOU54F YOU54F linked a pull request Jul 6, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants