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

bug: install of apex-go failing.. #13

Open
gedw99 opened this issue Mar 25, 2023 · 1 comment
Open

bug: install of apex-go failing.. #13

gedw99 opened this issue Mar 25, 2023 · 1 comment

Comments

@gedw99
Copy link

gedw99 commented Mar 25, 2023

am on main branch.

on the latest deno.

install deno and apex...

# needs deno !!
# https://github.com/denoland/deno_install#install-specific-version
curl -fsSL https://deno.land/x/install/install.sh | sh
######################################################################## 100.0%
Archive:  "/Users/apple/.deno"/bin/deno.zip
  inflating: "/Users/apple/.deno"/bin/deno  
Deno was installed successfully to "/Users/apple/.deno"/bin/deno
Manually add the directory to your $HOME/.zshrc (or similar)
  export DENO_INSTALL=""/Users/apple/.deno""
  export PATH="$DENO_INSTALL/bin:$PATH"
Run '"/Users/apple/.deno"/bin/deno --help' to get started


# now can install apex
cd apex && "/Users/apple/.deno"/bin/deno install -f -A --unstable ./apex.ts
✅ Successfully installed apex
/Users/apple/.deno/bin/apex
ℹ️  Add /Users/apple/.deno/bin to PATH
    export PATH="/Users/apple/.deno/bin:$PATH"
apex version
apex version 0.1.16 darwin/amd64

Now for apex-go:

cd tinyjson/tinyjson && go install .

## now build apex-go
cd apex-go && apex generate

Generating model/msgpack.go...
Compilation error: Error: Dynamic require of "https://deno.land/x/apex_codegen@v0.1.9/go/mod.ts" is not supported
Generating model/wapc.go...
Compilation error: Error: Dynamic require of "https://deno.land/x/wapc_codegen@v0.0.6/tinygo/mod.ts" is not supported
Generating cmd/wapc/main.go...
Compilation error: Error: Dynamic require of "https://deno.land/x/wapc_codegen@v0.0.6/tinygo/mod.ts" is not supported
Generating model/model.go...
Compilation error: Error: Dynamic require of "https://deno.land/x/apex_codegen@v0.1.9/go/mod.ts" is not supported
Formatting model/model.go...
Formatting model/msgpack.go...
Formatting model/wapc.go...
Formatting cmd/wapc/main.go...
Running: tinyjson -all model/model.go
apex: error: Compilation error: Error: Dynamic require of "https://deno.land/x/apex_codegen@v0.1.9/go/mod.ts" is not supported; Compilation error: Error: Dynamic require of "https://deno.land/x/wapc_codegen@v0.0.6/tinygo/mod.ts" is not supported; Compilation error: Error: Dynamic require of "https://deno.land/x/wapc_codegen@v0.0.6/tinygo/mod.ts" is not supported; Compilation error: Error: Dynamic require of "https://deno.land/x/apex_codegen@v0.1.9/go/mod.ts" is not supported
make[1]: *** [Makefile:22: codegen] Error 1
@pkedy
Copy link
Member

pkedy commented Mar 25, 2023

apex version
apex version 0.1.16 darwin/amd64

That looks like the old version of apex based in Go (not Deno). You might need to remove that old version before it works.

Output of apex generate should look like this.

INFO Writing file model/model.go (mode:644)
INFO Formatting file model/model.go
tinyjson -all model/model.go
INFO Writing file model/msgpack.go (mode:644)
INFO Formatting file model/msgpack.go
INFO Writing file model/wapc.go (mode:644)
INFO Formatting file model/wapc.go
INFO Writing file cmd/wapc/main.go (mode:644)
INFO Formatting file cmd/wapc/main.go

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

2 participants