Skip to content

Package fails to build if a native package dependency is not of new enough version #54

@georgestagg

Description

@georgestagg

This fails even if the Wasm version is up-to-date. We should catch this situation and update the native package.

> rwasm::add_pkg("teal")
✔ Updated metadata database: 2.38 MB in 2 files.
✔ Updating metadata database ... done
Processing 1 package(s).
✔ Scanning dependencies in ./repo/src/contrib/teal_1.0.0.tar.gz ... done

 
 
→ The package (0 B) is cached.
ℹ No downloads are needed
✔ :  [3.7s]  
* installing *source* package ‘teal’ ...
** this is package ‘teal’ version ‘1.0.0’
** package ‘teal’ successfully unpacked and MD5 sums checked
** using non-staged installation
** R
** inst
** preparing package for lazy loading
Error: package ‘teal.slice’ 0.6.0 was found, but >= 0.7.0 is required by ‘teal’
Execution halted
ERROR: lazy loading failed for package ‘teal’
* removing ‘/private/var/folders/kw/9gcs_ccn62q94s3mfny4t8tw0000gp/T/Rtmp0tfLeS/fileb069c663d2/teal’
Warning message:
In wasm_build(pkg, tarball_path, contrib_bin, compress) :
  Building wasm binary for package 'teal' failed.
> rwasm::add_pkg("teal.slice")
Processing 1 package(s).

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