Skip to content

Add vega_lite_convert support #20

@Makesesama

Description

@Makesesama

Hey,
I want to add vega_lite and vega_lite_convert to my project:

{:vega_lite, "~> 0.1.11"},
{:vega_lite_convert, "~> 1.0"},

but i get an error, because vega_lite_convert needs vl-convert and the build tries to download rusty-v8. I tried to work around it myself by providing the rusty_v8 with the RUSTY_V8_ARCHIVE env variable, but i cannot get it to work.
Here is the error:

...
   Compiling dynasm v1.2.3
   Compiling fontdb v0.21.0
   Compiling nix v0.26.2
   Compiling lazy-regex v3.1.0
   Compiling value-trait v0.8.1
   Compiling rsa v0.9.6
error: failed to run custom build command for `v8 v0.105.1`

Caused by:
  process didn't exit successfully: `/build/ex_vl_convert/target/release/build/v8-bb5c10486f72b0c9/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=.gn
  cargo:rerun-if-changed=BUILD.gn
  cargo:rerun-if-changed=src/binding.cc
  cargo:rerun-if-env-changed=CCACHE
  cargo:rerun-if-env-changed=CLANG_BASE_PATH
  cargo:rerun-if-env-changed=CXXSTDLIB
  cargo:rerun-if-env-changed=DENO_TRYBUILD
  cargo:rerun-if-env-changed=DOCS_RS
  cargo:rerun-if-env-changed=GN
  cargo:rerun-if-env-changed=GN_ARGS
  cargo:rerun-if-env-changed=HOST
  cargo:rerun-if-env-changed=NINJA
  cargo:rerun-if-env-changed=OUT_DIR
  cargo:rerun-if-env-changed=RUSTY_V8_ARCHIVE
  cargo:rerun-if-env-changed=RUSTY_V8_MIRROR
  cargo:rerun-if-env-changed=RUSTY_V8_SRC_BINDING_PATH
  cargo:rerun-if-env-changed=SCCACHE
  cargo:rerun-if-env-changed=V8_FORCE_DEBUG
  cargo:rerun-if-env-changed=V8_FROM_SOURCE
  cargo:rerun-if-env-changed=PYTHON
  cargo:rerun-if-env-changed=DISABLE_CLANG
  cargo:rerun-if-env-changed=EXTRA_GN_ARGS
  cargo:rerun-if-env-changed=PRINT_GN_ARGS
  cargo:rerun-if-env-changed=CARGO_ENCODED_RUSTFLAGS
  cargo:rustc-link-lib=static=rusty_v8
  lockfile: "/build/ex_vl_convert/target/x86_64-unknown-linux-gnu/release/build/v8.fslock"
  cargo:rustc-env=RUSTY_V8_SRC_BINDING_PATH=/build/cargo-vendor-dir/v8-0.105.1/gen/src_binding_release_x86_64-unknown-linux-gnu.rs
  static lib URL: https://github.com/denoland/rusty_v8/releases/download/v0.105.1/librusty_v8_release_x86_64-unknown-linux-gnu.a.gz
  cargo:rustc-link-search=/build/ex_vl_convert/target/x86_64-unknown-linux-gnu/release/gn_out/obj
  Looking for download in '"/homeless-shelter/.cargo/.rusty_v8/https___github_com_denoland_rusty_v8_releases_download_v0_105_1_librusty_v8_release_x86_64_unknown_linux_gnu_a_gz"'
  Downloading (using Python) https://github.com/denoland/rusty_v8/releases/download/v0.105.1/librusty_v8_release_x86_64-unknown-linux-gnu.a.gz
  Python downloader failed, trying with curl.

  --- stderr
  thread 'main' panicked at /build/cargo-vendor-dir/v8-0.105.1/build.rs:546:10:
  called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Probably you have an idea to fix this. Thanks for the great libary!

Cheers,
Max

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions