oasislabs / oasis-cli

Build tool for the Oasis platform
Apache License 2.0
0 stars 1 forks source link

Add custom section with version info to WASM #159

Closed mitjat closed 4 years ago

mitjat commented 4 years ago

The PR adds a custom section named oasis_version to each WASM. The contents are a JSON with keys "sha" (of the repo at the point when the service was built) and "serviceName" (intended for humans; derived from filename of wasm).

The goal is to make it easier to debug the many version mismatches we have seen recently.

This change is backwards compatible.