hasura / hasura/graphql-engine

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

Open
#7,820 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

c/cli k/bug t/product-platform
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

Related issues:

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin with the CLI extension installation path exercised by hasura plugins install cli-ext and the fallback shown by console.dev.sh on aarch64-darwin; the issue names no source files or tests. Done means cli-ext installs on Apple Silicon and hasura console persists metadata and migration changes without the platform error.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.