From c259cf14906139faeb27b6fa0f5c5e49efb2cb93 Mon Sep 17 00:00:00 2001 From: Waozi Date: Sun, 22 Nov 2026 01:56:39 -0300 Subject: [PATCH] Lock the package to the verified ZX toolchain --- Makefile | 6 +++--- ziran.lock | 6 +++--- ziran.toml | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 5a4d40f..b3ae337 100644 --- a/Makefile +++ b/Makefile @@ -10,10 +10,10 @@ BUILD := build check: test test: - $(ZIRAN) check --project - $(ZIRAN) build --project --target=c --entry diff_test:main \ + $(ZIRAN) check --project --locked + $(ZIRAN) build --project --locked --target=c --entry diff_test:main \ -o $(BUILD)/test-c tests/diff_test.zi - $(CC) -std=c99 -pedantic-errors -I$$($(ZIRAN) pkg path ziran)/include \ + $(CC) -std=c99 -pedantic-errors -I$$($(ZIRAN) pkg path ziran --locked)/include \ -I$(BUILD)/test-c $(BUILD)/test-c/*.c -o $(BUILD)/diff-test $(BUILD)/diff-test diff --git a/ziran.lock b/ziran.lock index 7dec0cd..4a8c08c 100644 --- a/ziran.lock +++ b/ziran.lock @@ -8,8 +8,8 @@ "name": "diff" }, "toolchain": { - "commit": "7bc57800eb5fc0d922628bdbce2f619427fb4219", - "ref": "master", - "url": "https://github.com/ziranlang/ziran.git" + "commit": "5db3d3c39425d5dfe4bfe4a84e6f6e2e5a810ad0", + "ref": "5db3d3c39425d5dfe4bfe4a84e6f6e2e5a810ad0", + "url": "https://git.waozi.xyz/ziranlang/ziran.git" } } diff --git a/ziran.toml b/ziran.toml index b146b98..418b52b 100644 --- a/ziran.toml +++ b/ziran.toml @@ -3,8 +3,8 @@ name = "diff" module_roots = ["src", "tests"] [toolchain] -git = "https://github.com/ziranlang/ziran.git" -ref = "master" +git = "https://git.waozi.xyz/ziranlang/ziran.git" +ref = "5db3d3c39425d5dfe4bfe4a84e6f6e2e5a810ad0" [exports] diff = "src/diff.zi"