Skip to content

compatibility on windows  #336

@leejw51crypto

Description

@leejw51crypto

libwasmvm, src, cache.rs, do_init_cache
let cache = unsafe { Cache::new(options) }?;

calls
cosmwasm vm/src/cache.rs

 for path in [&state_path, &cache_path, &wasm_path].iter() {
            create_dir_all(path).map_err(|e| {
                VmError::cache_err(format!(
                    "Error creating directory {}: {}",
                    path.display(),
                    e
                ))
            })?;
        }

path.display is different because of \\
and e is also different message on windows
this make CI test fails

check this pattern in other places,
ensure compatibility on windows

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