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

dfx extension install [url] not working #137

Open
lastmjs opened this issue Aug 29, 2024 · 2 comments
Open

dfx extension install [url] not working #137

lastmjs opened this issue Aug 29, 2024 · 2 comments

Comments

@lastmjs
Copy link

lastmjs commented Aug 29, 2024

I'm no dfx 0.23.0-beta.0 and I'm trying to install the Azle extension like this:

dfx extension install https://raw.githubusercontent.com/demergent-labs/azle/main/dfx_extension/extension.json

I get this error:

Error: HTTP status client error (404 Not Found) for url (https://raw.githubusercontent.com/demergent-labs/azle/main/dfx_extension/dependencies.json)
@lastmjs
Copy link
Author

lastmjs commented Aug 29, 2024

Oops, just learning, I see the problem now

@lastmjs lastmjs closed this as completed Aug 29, 2024
@lastmjs lastmjs reopened this Aug 29, 2024
@lastmjs
Copy link
Author

lastmjs commented Aug 29, 2024

Actually I am reopening this. dfx extension install [url] really isn't working. I have been installing (and instructing others to install) our azle extension from the local file system for a long time now. This has been working very well. We have a command that users run that does this under-the-hood:

#!/bin/bash

DFX_CACHE_DIR="$(dfx cache show)"

if [ ! -d "$DFX_CACHE_DIR" ]; then
    dfx cache install
fi

mkdir -p "$DFX_CACHE_DIR/extensions/azle"
cp extension.json "$DFX_CACHE_DIR/extensions/azle/extension.json"

It's very simple and only requires the extension.json file. And the extension is working great.

But when I do something like dfx extension install https://raw.githubusercontent.com/demergent-labs/azle/wasmedge_improved_installation/dfx_extension/extension.json it requires much more. First it requires a dependencies.json, and now I'm getting this error:

Error: HTTP status client error (404 Not Found) for url (https://github.com/dfinity/dfx-extensions/releases/download/azle-v0.23.0/azle-x86_64-unknown-linux-gnu.tar.gz)

I don't see why all of this is necessary. Can't it work just like my local installation? I was hoping it would just retrieve the extension.json remotely and finish just like my local installation.

I don't want to have to maintain the dependencies.json nor create these tarballs if they're unnecessary, and they do not seem necessary for our use case.

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

No branches or pull requests

1 participant