Skip to content

feat: Allow specifying PIC version#266

Merged
adamspofford-dfinity merged 5 commits into
mainfrom
spofford/specify-server
Jun 8, 2026
Merged

feat: Allow specifying PIC version#266
adamspofford-dfinity merged 5 commits into
mainfrom
spofford/specify-server

Conversation

@adamspofford-dfinity

@adamspofford-dfinity adamspofford-dfinity commented May 20, 2026

Copy link
Copy Markdown
Contributor

Adds support for reading the binary version from a .pocket-ic-version file. The version string goes ic:<version> or package:<version> based on whether it should be read from the dfinity/ic or dfinity/pocketic repos. This allows you to use bleeding edge features ahead of official pocket-ic releases.

Copilot AI review requested due to automatic review settings May 20, 2026 21:12
@adamspofford-dfinity adamspofford-dfinity requested a review from a team as a code owner May 20, 2026 21:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances @dfinity/pic’s postinstall flow by letting consumers pin which PocketIC binary version to download (via a .pocket-ic-version file in the invoking project) and by extending platform detection to support arm64 binaries.

Changes:

  • Add support for reading a package:<version> or ic:<version> spec from .pocket-ic-version to choose the download source/version.
  • Extend platform detection to download arm64-* binaries when running on arm64/aarch64.
  • Refactor the download URL computation into a helper (resolveDownloadUrl()).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/pic/postinstall.mjs Outdated
Comment thread packages/pic/postinstall.mjs
Comment thread packages/pic/postinstall.mjs
adamspofford-dfinity and others added 4 commits June 5, 2026 12:55
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
lwshang
lwshang previously approved these changes Jun 5, 2026
@adamspofford-dfinity adamspofford-dfinity added this pull request to the merge queue Jun 8, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 8, 2026
@adamspofford-dfinity adamspofford-dfinity added this pull request to the merge queue Jun 8, 2026
Merged via the queue into main with commit 01ee31c Jun 8, 2026
15 checks passed
@adamspofford-dfinity adamspofford-dfinity deleted the spofford/specify-server branch June 8, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants