Cargo callers on committed-lock crates run with --locked (locked-cargo-callers) (#160)
This commit is contained in:
parent
694d2ced10
commit
c4a270bc7f
10 changed files with 14 additions and 13 deletions
|
|
@ -2106,7 +2106,7 @@ async function readTsInteropStore(file: string): Promise<InteropNote> {
|
|||
|
||||
async function buildInteropPeers(): Promise<void> {
|
||||
if (!(await exists(rustInteropBinary))) {
|
||||
await execAsync(`"${cargoCommand}" build --quiet --example cultcache_interop`, {
|
||||
await execAsync(`"${cargoCommand}" build --locked --quiet --example cultcache_interop`, {
|
||||
cwd: cultcacheRsRoot,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -147,8 +147,8 @@ CultMath names with tests instead of copied project-local helper drift.
|
|||
```powershell
|
||||
dotnet build packages/cultmath/src/CultMath/CultMath.csproj
|
||||
dotnet test packages/cultmath/tests/CultMath.Tests/CultMath.Tests.csproj
|
||||
cargo test --manifest-path packages/cultmath/native/cultmath-core/Cargo.toml
|
||||
cargo build --release --manifest-path packages/cultmath/native/cultmath-core/Cargo.toml
|
||||
cargo test --locked --manifest-path packages/cultmath/native/cultmath-core/Cargo.toml
|
||||
cargo build --locked --release --manifest-path packages/cultmath/native/cultmath-core/Cargo.toml
|
||||
.\packages\cultmath\scripts\build-unity-package.ps1
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ const rust: Target = {
|
|||
name: "rust",
|
||||
payload: (text) => encode({ text }),
|
||||
async start() {
|
||||
if (!prebuilt) await execFileAsync(cargo, ["build", "--example", "receipt_interop_server", "--message-format", "short"], { cwd: rustManifestDir });
|
||||
if (!prebuilt) await execFileAsync(cargo, ["build", "--locked", "--example", "receipt_interop_server", "--message-format", "short"], { cwd: rustManifestDir });
|
||||
const metadata = spawnSync(cargo, ["metadata", "--format-version", "1", "--no-deps"], { cwd: rustManifestDir, encoding: "utf8" });
|
||||
if (metadata.status !== 0) throw new Error(`cargo metadata failed: ${metadata.stderr}`);
|
||||
const exe = join(JSON.parse(metadata.stdout).target_directory, "debug", "examples", `receipt_interop_server${process.platform === "win32" ? ".exe" : ""}`);
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ knock on the contract before touching the furniture.
|
|||
## Receipts
|
||||
|
||||
```powershell
|
||||
cargo test
|
||||
cargo test --locked
|
||||
```
|
||||
|
||||
The initial tests prove:
|
||||
|
|
|
|||
|
|
@ -2795,7 +2795,7 @@ async function buildInteropPeers(): Promise<void> {
|
|||
}
|
||||
|
||||
async function buildRustInteropPeer(): Promise<void> {
|
||||
rustInteropPeerBuild ??= execFileAsync(cargoCommand, ["build", "--quiet", "--example", "cultnet_interop_peer"], {
|
||||
rustInteropPeerBuild ??= execFileAsync(cargoCommand, ["build", "--locked", "--quiet", "--example", "cultnet_interop_peer"], {
|
||||
cwd: cultnetRsRoot,
|
||||
}).then(() => undefined);
|
||||
await rustInteropPeerBuild;
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ adversary, storage, and any projection. Every parameter is a placeholder until t
|
|||
## First call
|
||||
|
||||
```
|
||||
cargo run --example first_call # prints the Meta example and a splitting table
|
||||
cargo test
|
||||
cargo run --locked --example first_call # prints the Meta example and a splitting table
|
||||
cargo test --locked
|
||||
```
|
||||
|
||||
```rust
|
||||
|
|
|
|||
Loading…
Reference in a new issue