mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 06:08:29 +00:00
Add comments to explain IndexMap
This commit is contained in:
@@ -120,6 +120,11 @@ impl RunWithPathBuf {
|
||||
|
||||
#[cfg(feature = "wasi")]
|
||||
{
|
||||
// See https://github.com/wasmerio/wasmer/issues/3492 -
|
||||
// we need IndexMap to have a stable ordering for the [fs] mapping,
|
||||
// otherwise overlapping filesystem mappings might not work
|
||||
// since we want to control the order of mounting directories from the
|
||||
// wasmer.toml file
|
||||
let default = indexmap::IndexMap::default();
|
||||
let fs = manifest.fs.as_ref().unwrap_or(&default);
|
||||
for (alias, real_dir) in fs.iter() {
|
||||
|
||||
Reference in New Issue
Block a user