Bumping pocket-ic-server

Sync pocket-ic-server binaries and Motoko test dependencies to a new releaseTag.

588|127|Updated May 11, 2018
One-click install
npx skills add https://github.com/caffeinelabs/motoko --skill bumping-pocket-ic-server
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Bumping pocket-ic-server
Source: https://github.com/caffeinelabs/motoko/tree/main/.agents/skills/bump-pocket-ic
Command: npx skills add https://github.com/caffeinelabs/motoko --skill bumping-pocket-ic-server

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents broken Motoko tests by keeping the downloaded pocket-ic-server binary version and related Nix/Rust pinning in sync.

Core Features & Use Cases

  • Update pocket-ic-server download inputs: Change releaseTag and sha256Map in nix/pocket-ic.nix to download the correct binary for each platform.
  • Keep Rust dependencies aligned: Update test-runner/Cargo.toml to pin the pocket-ic crate to the matching releaseTag, then refresh Cargo.lock.
  • Fix Nix build output hashes: Correct the test-runner-cargo-lock outputHashes block in flake.nix so Nix can reproduce the build.

Quick Start

Tell the AI to bump pocket-ic by selecting the latest appropriate release-YYYY-MM-DD_HH-MM-base tag, updating nix/pocket-ic.nix checksums, syncing test-runner to the same tag, and then updating flake.nix hashes to make nix build .#pocket-ic-server .#test-runner succeed.

Frequently Asked Questions about Bumping pocket-ic-server

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update pocket-ic-server to a new release tag in Nix?

To update pocket-ic-server in Nix, change the releaseTag and sha256Map in nix/pocket-ic.nix to download the correct platform-specific binary for the new release.

Why do my Motoko tests break after updating pocket-ic-server?

Motoko tests break because the downloaded pocket-ic-server binary version and the Rust test-runner dependency pinning are out of sync, requiring both Nix packaging and Cargo.toml updates.

How do I sync Rust test-runner dependencies with pocket-ic releases?

Sync Rust test-runner dependencies by updating test-runner/Cargo.toml to pin the pocket-ic crate to the matching releaseTag, then refresh Cargo.lock to resolve the dependencies.

Do I need Nix to build pocket-ic-server and test-runner?

Yes, you need Nix to build pocket-ic-server and test-runner, specifically requiring you to correct the test-runner-cargo-lock outputHashes block in flake.nix so Nix can reproduce the build.

What is the best way to fix flake.nix outputHashes for pocket-ic updates?

The best way to fix flake.nix outputHashes is to repair the test-runner-cargo-lock outputHashes block to match the newly resolved pocket-ic crate, ensuring nix build succeeds.

When do I need to update both nix/pocket-ic.nix and test-runner/Cargo.toml?

You need to update both nix/pocket-ic.nix and test-runner/Cargo.toml whenever new upstream pocket-ic releases land, keeping the downloaded binary and Rust dependency pinning consistent.