render-oss / homebrew-render

2 stars 1 forks source link

issue during install #7

Open parrotmac opened 1 year ago

parrotmac commented 1 year ago

encountering this error during initial install:

==> Fetching render-oss/render/render
==> Cloning https://github.com/render-oss/render-cli.git
Cloning into '/Users/isaac/Library/Caches/Homebrew/render--git'...
==> Checking out tag v0.1.6
HEAD is now at c0de4b6 Merge pull request #57 from robdimarco-render/robdimarco-render/SVC-1626-fix-build-issue
==> Installing render from render-oss/render
==> Installing dependencies for render-oss/render/render: deno
==> Installing render-oss/render/render dependency: deno
==> Pouring deno--1.33.3.arm64_ventura.bottle.tar.gz
🍺  /opt/homebrew/Cellar/deno/1.33.3: 10 files, 78MB
==> Installing render-oss/render/render
==> make build-completions
Last 15 lines from /Users/isaac/Library/Logs/Homebrew/render/01.make:
        --allow-net \
        --allow-read \
        --allow-run \
        --allow-write \
        --allow-env \
        --target=aarch64-apple-darwin \
        --output=./bin/render \
        ./entry-point.ts
Check file:///private/tmp/render-20230517-61206-1klz0zu/entry-point.ts
error: TS2345 [ERROR]: Argument of type '{}' is not assignable to parameter of type 'string'.
            if (deployIds && !deployIds.has(msg.deployID)) {
                                            ~~~~~~~~~~~~
    at file:///private/tmp/render-20230517-61206-1klz0zu/commands/services/tail.ts:93:45
make[1]: *** [build-macos-aarch64] Error 1
make: *** [build-local] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/render-oss/homebrew-render/issues

machine: OS: macOS 13.3.1 22E261 arm64

Crenshinibon commented 1 year ago

I have something similar. I'm on Zorin OS 15.3 (Ubuntu 18.04)

==> Fetching render-oss/render/render
==> Cloning https://github.com/render-oss/render-cli.git
Updating /home/dirk/.cache/Homebrew/render--git
==> Checking out tag v0.1.6
HEAD is now at c0de4b6 Merge pull request #57 from robdimarco-render/robdimarco-render/SVC-1626-fix-build-issue
HEAD is now at c0de4b6 Merge pull request #57 from robdimarco-render/robdimarco-render/SVC-1626-fix-build-issue
==> Installing render from render-oss/render
==> make build-completions
Last 15 lines from /home/dirk/.cache/Homebrew/Logs/render/01.make:
2023-05-18 18:00:17 +0000

make
build-completions

./_build/build-local.bash
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[1]: Entering directory '/tmp/render-20230518-6403-17glu14'
deno cache --lock=deps-lock.json deps.ts
make[1]: deno: Command not found
Makefile:10: recipe for target 'deps' failed
make[1]: *** [deps] Error 127
make[1]: Leaving directory '/tmp/render-20230518-6403-17glu14'
Makefile:4: recipe for target 'build-local' failed
make: *** [build-local] Error 2
robdimarco-render commented 1 year ago

@parrotmac the compilation issue you saw should be fixed now with v0.1.7. Please retry.

robdimarco-render commented 1 year ago

@Crenshinibon The install requires deno to be installed to run correctly. I tried requiring deno in the formula but got a deploy failure for linux (https://github.com/render-oss/homebrew-render/pull/9).

Crenshinibon commented 1 year ago
dirk@cattie-brie:~/Development/accomade$ deno
Deno 1.27.2
exit using ctrl+d, ctrl+c, or close()
> 
press ctrl+c again to exit
> 
dirk@cattie-brie:~/Development/accomade$ which deno
/snap/bin/deno
dirk@cattie-brie:~/Development/accomade$ 

I have deno installed via Snapcraft.

robdimarco-render commented 1 year ago
dirk@cattie-brie:~/Development/accomade$ deno
Deno 1.27.2
exit using ctrl+d, ctrl+c, or close()
> 
press ctrl+c again to exit
> 
dirk@cattie-brie:~/Development/accomade$ which deno
/snap/bin/deno
dirk@cattie-brie:~/Development/accomade$ 

I have deno installed via Snapcraft.

That's odd, I wonder why it is giving the error deno: Command not found.

Crenshinibon commented 1 year ago

I switched to the Snapcraft version of render. Thx.

Acel-01 commented 1 year ago

Hello @robdimarco-render . I'm having a similar installation issue but I have deno installed. Could you take a look at it?

image

robdimarco-render commented 1 year ago

@Acel-01 Interesting, it cannot find deno in the build path. Can you run a which deno to see where the deno executable is located.

Acel-01 commented 1 year ago

Here @robdimarco-render

image

thebiondGithub commented 1 year ago

The moderately difficult way: pull the repo This is necessary to run render-cli on platforms not supported by deno compile, such as Linux arm64.

You can also clone this repository (fork it first, if you want!) and run the application from the repo itself. Something like this will get you sorted:

git clone git@github.com:render-oss/render-cli.git cd render-cli make deps

'deno task run' replaces 'render' in executable invocations

deno task run --help To build a local binary, run make build-local. It will emit a platform-correct binary on supported platforms and write it to ./bin/render.