sx sync: migrate legacy modules/{fs,process}.sx imports to modules/std/
The June stdlib restructure deleted the flat library modules; the old paths kept resolving only through a stale zig-out/library install snapshot. Verified green with that snapshot removed. Drop the empty src/infra/ — the planned hash/json/cli shims shipped as sx std modules instead.
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
// — a bare `parse` would bind to `std.cli`'s `parse` once both modules share
|
// — a bare `parse` would bind to `std.cli`'s `parse` once both modules share
|
||||||
// one program (the `dist` CLI), which returns a different type.
|
// one program (the `dist` CLI), which returns a different type.
|
||||||
jsonp :: #import "modules/std/json.sx";
|
jsonp :: #import "modules/std/json.sx";
|
||||||
#import "modules/fs.sx";
|
#import "modules/std/fs.sx";
|
||||||
#import "../domain/platform.sx";
|
#import "../domain/platform.sx";
|
||||||
#import "../domain/validate.sx";
|
#import "../domain/validate.sx";
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
#import "modules/std.sx";
|
#import "modules/std.sx";
|
||||||
#import "modules/std/json.sx";
|
#import "modules/std/json.sx";
|
||||||
#import "modules/fs.sx";
|
#import "modules/std/fs.sx";
|
||||||
#import "../domain/platform.sx";
|
#import "../domain/platform.sx";
|
||||||
#import "../domain/app.sx";
|
#import "../domain/app.sx";
|
||||||
#import "../domain/release.sx";
|
#import "../domain/release.sx";
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
// — a bare `parse` would bind to `std.cli`'s `parse` once both modules share
|
// — a bare `parse` would bind to `std.cli`'s `parse` once both modules share
|
||||||
// one program (the `dist` CLI), which returns a different type.
|
// one program (the `dist` CLI), which returns a different type.
|
||||||
jsonp :: #import "modules/std/json.sx";
|
jsonp :: #import "modules/std/json.sx";
|
||||||
#import "modules/fs.sx";
|
#import "modules/std/fs.sx";
|
||||||
#import "../domain/platform.sx";
|
#import "../domain/platform.sx";
|
||||||
#import "../domain/app.sx";
|
#import "../domain/app.sx";
|
||||||
#import "../domain/release.sx";
|
#import "../domain/release.sx";
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
// =====================================================================
|
// =====================================================================
|
||||||
|
|
||||||
#import "modules/std.sx";
|
#import "modules/std.sx";
|
||||||
fs :: #import "modules/fs.sx";
|
fs :: #import "modules/std/fs.sx";
|
||||||
hash :: #import "modules/std/hash.sx";
|
hash :: #import "modules/std/hash.sx";
|
||||||
|
|
||||||
// Failure classes for a put. `Stage` covers a failed staging write,
|
// Failure classes for a put. `Stage` covers a failed staging write,
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
// =====================================================================
|
// =====================================================================
|
||||||
|
|
||||||
#import "modules/std.sx";
|
#import "modules/std.sx";
|
||||||
#import "modules/fs.sx";
|
#import "modules/std/fs.sx";
|
||||||
#import "modules/std/hash.sx";
|
#import "modules/std/hash.sx";
|
||||||
#import "../domain/platform.sx";
|
#import "../domain/platform.sx";
|
||||||
#import "../domain/artifact.sx";
|
#import "../domain/artifact.sx";
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
// =====================================================================
|
// =====================================================================
|
||||||
|
|
||||||
#import "modules/std.sx";
|
#import "modules/std.sx";
|
||||||
proc :: #import "modules/process.sx";
|
proc :: #import "modules/std/process.sx";
|
||||||
json :: #import "modules/std/json.sx";
|
json :: #import "modules/std/json.sx";
|
||||||
|
|
||||||
// True iff `needle` occurs in `hay`. Plain scan — the captured streams are
|
// True iff `needle` occurs in `hay`. Plain scan — the captured streams are
|
||||||
|
|||||||
@@ -19,8 +19,8 @@
|
|||||||
// PASSES against the real pipeline. Fresh store per run.
|
// PASSES against the real pipeline. Fresh store per run.
|
||||||
#import "modules/std.sx";
|
#import "modules/std.sx";
|
||||||
#import "modules/std/json.sx";
|
#import "modules/std/json.sx";
|
||||||
process :: #import "modules/process.sx";
|
process :: #import "modules/std/process.sx";
|
||||||
fs :: #import "modules/fs.sx";
|
fs :: #import "modules/std/fs.sx";
|
||||||
hash :: #import "modules/std/hash.sx";
|
hash :: #import "modules/std/hash.sx";
|
||||||
|
|
||||||
cstd :: #library "c";
|
cstd :: #library "c";
|
||||||
|
|||||||
@@ -22,8 +22,8 @@
|
|||||||
// pass. Fresh store per run.
|
// pass. Fresh store per run.
|
||||||
#import "modules/std.sx";
|
#import "modules/std.sx";
|
||||||
#import "modules/std/json.sx";
|
#import "modules/std/json.sx";
|
||||||
process :: #import "modules/process.sx";
|
process :: #import "modules/std/process.sx";
|
||||||
fs :: #import "modules/fs.sx";
|
fs :: #import "modules/std/fs.sx";
|
||||||
|
|
||||||
STORE :: ".sx-tmp/publish_persist";
|
STORE :: ".sx-tmp/publish_persist";
|
||||||
MDIR :: ".sx-tmp/publish_persist_m";
|
MDIR :: ".sx-tmp/publish_persist_m";
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
// growth point wrongly used `context.allocator`, the count would not move
|
// growth point wrongly used `context.allocator`, the count would not move
|
||||||
// (the default allocator is a different, untracked one).
|
// (the default allocator is a different, untracked one).
|
||||||
#import "modules/std.sx";
|
#import "modules/std.sx";
|
||||||
process :: #import "modules/process.sx";
|
process :: #import "modules/std/process.sx";
|
||||||
#import "../src/domain/platform.sx";
|
#import "../src/domain/platform.sx";
|
||||||
#import "../src/domain/app.sx";
|
#import "../src/domain/app.sx";
|
||||||
#import "../src/domain/release.sx";
|
#import "../src/domain/release.sx";
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
// every assertion holds (process.assert aborts otherwise).
|
// every assertion holds (process.assert aborts otherwise).
|
||||||
#import "modules/std.sx";
|
#import "modules/std.sx";
|
||||||
#import "modules/std/json.sx";
|
#import "modules/std/json.sx";
|
||||||
#import "modules/fs.sx";
|
#import "modules/std/fs.sx";
|
||||||
process :: #import "modules/process.sx";
|
process :: #import "modules/std/process.sx";
|
||||||
#import "../src/domain/platform.sx";
|
#import "../src/domain/platform.sx";
|
||||||
#import "../src/domain/app.sx";
|
#import "../src/domain/app.sx";
|
||||||
#import "../src/domain/release.sx";
|
#import "../src/domain/release.sx";
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
// are absent.
|
// are absent.
|
||||||
// Uses a fresh `<root>` under `.sx-tmp/` and cleans up.
|
// Uses a fresh `<root>` under `.sx-tmp/` and cleans up.
|
||||||
#import "modules/std.sx";
|
#import "modules/std.sx";
|
||||||
process :: #import "modules/process.sx";
|
process :: #import "modules/std/process.sx";
|
||||||
#import "../src/domain/platform.sx";
|
#import "../src/domain/platform.sx";
|
||||||
#import "../src/domain/app.sx";
|
#import "../src/domain/app.sx";
|
||||||
#import "../src/domain/release.sx";
|
#import "../src/domain/release.sx";
|
||||||
|
|||||||
@@ -13,9 +13,9 @@
|
|||||||
// 4. put_file — a file source produces the same key and bytes.
|
// 4. put_file — a file source produces the same key and bytes.
|
||||||
// Exits 0 only if every assertion holds (process.assert aborts otherwise).
|
// Exits 0 only if every assertion holds (process.assert aborts otherwise).
|
||||||
#import "modules/std.sx";
|
#import "modules/std.sx";
|
||||||
fs :: #import "modules/fs.sx";
|
fs :: #import "modules/std/fs.sx";
|
||||||
hash :: #import "modules/std/hash.sx";
|
hash :: #import "modules/std/hash.sx";
|
||||||
process :: #import "modules/process.sx";
|
process :: #import "modules/std/process.sx";
|
||||||
#import "../src/store/store.sx";
|
#import "../src/store/store.sx";
|
||||||
|
|
||||||
// SHA-256("abc"), the FIPS 180-4 one-block known-answer vector.
|
// SHA-256("abc"), the FIPS 180-4 one-block known-answer vector.
|
||||||
|
|||||||
Reference in New Issue
Block a user