✓
Passing Passing: the compiler rejects this program as expected.
Code
// Pins that vendored source with NO lock is refused rather than trusted. An
// unpinned vendored tree is the failure this module exists to prevent: the code
// is in the repo, so it looks reviewed, and nothing can detect a later change to
// it. Absence of a pin is a refusal, not a default.
~import std/vendor
~std/vendor:bindings {
koru/vaxis: ./vendored/vaxis
}
~tor main {}
~proc main|zig {
}
~main()
Supporting Files
pub const name = "vaxis";
Actual compiler output
error[KORU171]: no vendor.lock — vendored source is unpinned, so nothing can detect a change to it. Pin it with `koruc tests/regression/100_MODULE_SYSTEM/130_PACKAGES/130_005_vendor_unpinned_refused/input.kz vendor sync`
--> tests/regression/100_MODULE_SYSTEM/130_PACKAGES/130_005_vendor_unpinned_refused/input.kz:8:0Must fail at runtime:
Program must error when executed.
Error output must contain
no vendor.lock — vendored source is unpinnedFlows
flow ~bindings click a branch to expand · @labels scroll to their anchor
bindings (source: koru/vaxis: ./vendored/vaxis)
flow ~main click a branch to expand · @labels scroll to their anchor
main
Test Configuration
MUST_ERROR