stable
Clone or download
Read-only
Closes request #33649: Make pre-receive-check-stable-tags.wasm cover more complex cases
pre-receive-check-stable-tags WASM module verify that the version of newly submited tags is increasing. How to build: - cd tools/utils/pre-receive-check-stable-tags - nix-shell - cargo build --target wasm32-wasi --release - cargo test --release How to test: - Create a git repository on you dev instance - Submit tags like "1.1" and "@tuleap/project-sidebar_2.2.1" - mv pre-receive-check-stable-tags.wasm /var/lib/tuleap/untrusted-code/git/pre-receive-hook/<repo-id>.wasm - Verify that you can only submit well formated tags - Verify that you can only submit well formated tags with a greater version number than those that you originaly created Change-Id: Icbe7999141c14aa546512f38631a4d2e9c03346f
Modified Files
Name | ||||
---|---|---|---|---|
D | tools/utils/pre-receive-check-stable-tags/example/invalid.json | +0 | −16 | Go to diff View file |
D | tools/utils/pre-receive-check-stable-tags/example/valid.json | +0 | −16 | Go to diff View file |
M | tools/utils/pre-receive-check-stable-tags/src/main.rs | +304 | −54 | Go to diff View file |
M | tools/utils/pre-receive-check-stable-tags/src/wire.rs | +1 | −0 | Go to diff View file |