You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.
$ echo$WASMER_DIR/home/michael/.config/wasmer
$ ls $WASMER_DIRwapm.log wapm.toml
$ cd path/to/some/wapm/package
$ cat wapm.toml[package]name = "Michael-F-Bryan/cuboid-model"version = "0.1.0"description = "A module for generating a cuboid."license = "MIT or APACHE-2.0"[[module]]name = "cuboid-model"source = "cuboid_model.wasm"abi = "none"
$ wapm publish --dry-runError: Failed to open logging file in WASMER_DIR: error type: NotFoundError: unable to open database file: /home/michael/.wasmer/wapm.sqlite
$ mkdir ~/.wasmer
$ wapm publish --dry-runSuccessfully published package `Michael-F-Bryan/[email protected]`[INFO] Publish succeeded, but package was not published because it was run in dry-run mode
$ ls ~/.wasmerwapm.log wapm.sqlite
Expected behavior
The wapm CLI should have written wapm.log and wapm.sqlite to ~/.config/wasmer ($WASMER_DIR).
Actual behavior
It uses the hard-coded ~/.wasmer directory.
Additional context
This version of wapm was installed via cargo install.
The text was updated successfully, but these errors were encountered:
Michael-F-Bryan
changed the title
The WAPM CLI doesn
The WAPM CLI doesn't respect the WASMER_DIR environment variable
Apr 10, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
The
wapm
CLI tool doesn't use the$WASMER_DIR
variable when saving its logs or database file.$ wapm -V Error: Failed to open logging file in WASMER_DIR: error type: NotFound wapm-cli 0.5.1 $ rustc -Vv rustc 1.62.0-nightly (f4a7ce997 2022-04-08) binary: rustc commit-hash: f4a7ce997a1d7546d2b737f8b87d36907bcea2ad commit-date: 2022-04-08 host: x86_64-unknown-linux-gnu release: 1.62.0-nightly LLVM version: 14.0.0
Steps to reproduce
Expected behavior
The
wapm
CLI should have writtenwapm.log
andwapm.sqlite
to~/.config/wasmer
($WASMER_DIR
).Actual behavior
It uses the hard-coded
~/.wasmer
directory.Additional context
This version of
wapm
was installed viacargo install
.The text was updated successfully, but these errors were encountered: