CosmWasm / wasmvm

Go bindings to the CosmWasm VM
Apache License 2.0
173 stars 102 forks source link

Builders should not write their target into the host file system #437

Closed webmaster128 closed 3 months ago

webmaster128 commented 1 year ago

By mounting -v $(shell pwd)/libwasmvm:/code in the main Makefile, builders write to a target folder in the host file system. We should let them write to a mounted volume instead.

This avoids the need for those clearing steps:

    rm -rf target/aarch64-unknown-linux-musl/release
    rm -rf target/x86_64-unknown-linux-musl/release
webmaster128 commented 3 months ago

After this change the build should not write to the host anymore. So we can drop the -u $(USER_ID):$(USER_GROUP) part from the calling convention.