Skip to content
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.

Add custom section with version info to WASM #159

Merged
merged 4 commits into from
Aug 27, 2020

Conversation

mitjat
Copy link
Contributor

@mitjat mitjat commented Aug 26, 2020

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.

@mitjat mitjat requested a review from nhynes as a code owner August 26, 2020 23:14
src/subcommands/build.rs Outdated Show resolved Hide resolved
src/subcommands/build.rs Outdated Show resolved Hide resolved
src/subcommands/build.rs Outdated Show resolved Hide resolved
src/subcommands/build.rs Outdated Show resolved Hide resolved
src/subcommands/build.rs Outdated Show resolved Hide resolved
src/subcommands/build.rs Outdated Show resolved Hide resolved
mitjat and others added 2 commits August 27, 2020 09:46
Co-authored-by: Nick Hynes <nhynes@oasislabs.com>
@mitjat mitjat merged commit 12e44a6 into master Aug 27, 2020
@mitjat mitjat deleted the mitjat/version_wasm_section branch August 27, 2020 08:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants