graphql-engine icon indicating copy to clipboard operation
graphql-engine copied to clipboard

"plugin "cli-ext" does not offer installation for this platform" with CLI on Apple Silicon

Open samuela opened this issue 4 years ago • 7 comments

Related issues:

  • https://github.com/hasura/graphql-engine/issues/6337
  • https://github.com/NixOS/nixpkgs/issues/113756
  • https://github.com/hasura/graphql-engine/issues/6579

Version Information

Server Version: v2.0.10 CLI Version (for CLI related issue):

[nix-shell:~/dev/cuddlefish/hasura]$ hasura version
INFO hasura cli                                    version=dev
INFO hasura graphql engine                         endpoint="http://localhost:8080/" version=v2.0.10

I'm running the hasura-cli package in nixpkgs as of commit https://github.com/NixOS/nixpkgs/commit/c11d08f02390aab49e7c22e6d0ea9b176394d961.

Environment

macOS 12.0.1 running on aarch64-darwin (aka M1).

What is the expected behaviour?

hasura console to work, with metadata/migration changes made in the console to update the files in the metadata/ and migrations/ directories.

Keywords

hasura cli, cli-ext, M1, arm64, aarch64, aarch64-darwin, nix, nixpkgs, hasura-cli, arm

What is the current behaviour?

When making edits in the console that ought produce changes in metadata/ or migrations/:

[nix-shell:~/dev/cuddlefish/hasura]$ ./console.dev.sh 
INFO console running at: http://localhost:9695/   
WARN Unable to find an embedded cli-ext. So trying to fetch it from CDN 
WARN Tip: --cli-ext-path can be used for setting up cli-ext from local file system 
WARN Unable to find an embedded cli-ext. So trying to fetch it from CDN 
WARN Tip: --cli-ext-path can be used for setting up cli-ext from local file system 
WARN Unable to find an embedded cli-ext. So trying to fetch it from CDN 

And when I attempt to install the cli-ext plugin manually:

[nix-shell:~/dev/cuddlefish/hasura]$ hasura plugins install cli-ext
FATA[0001] failed to install plugin "cli-ext": plugin "cli-ext" does not offer installation for this platform 

How to reproduce the issue?

Follow either of the steps in the previous described in the "current behavior" section.

Screenshots or Screencast

n/a

Please provide any traces or logs that could help here.

no interesting logs are generated besides the ones presented above

Any possible solutions?

None AFAICT

Can you identify the location in the source code where the problem exists?

no

If the bug is confirmed, would you be willing to submit a PR?

AFAIU Fixing this requires buy-in and investment from hasura to officially support ARM platforms.

samuela avatar Nov 18 '21 08:11 samuela

Installing via these instructions seems to work. It must be something about how hasura-cli is packaged in nixpkgs.

samuela avatar Nov 18 '21 08:11 samuela

The cli-plugins-index still references the version 2.0.0 which is not available for darwin-arm64, whereas the 2.0.9 is.

I guess the index just needs to be updated.

freezeboy avatar Jul 14 '22 22:07 freezeboy

I'm having the same issue on NixOS for aarch64 (running on a M1 mac within a VM)

cor avatar Aug 20 '22 14:08 cor

any update

phamquyhai avatar Sep 26 '22 15:09 phamquyhai

I didn't use brew to install, but instead used the shell script on the site: https://hasura.io/docs/2.0/hasura-cli/install-hasura-cli/

This worked

magidandrew avatar Oct 05 '24 21:10 magidandrew

At the beginning, I used Alpine in my docker-compose and got the same error. After I change to use Ubuntu, the error is gone.

cedrus-8864 avatar Oct 08 '24 02:10 cedrus-8864

+1

100tomer avatar Jun 05 '25 10:06 100tomer