Repository navigation
Clarinet was migrated to Stacks Labs #2055
hugo-stacks
announced in
Announcements
Replies: 1 comment 1 reply
|
Thank you for this. Where do we update the Docker Image? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Tip
Clarinet was transferred from Hiro to Stacks Labs.
You may have noticed that the Clarinet repository now belongs to the stx-labs organization.
With the 3.9.0 release, a few other things have changed:
@stacksorganization.tl;dr
Checklist:
✅ Update NPM packages:
"@stacks/clarinet-sdk": "^3.14.0""vitest-environment-clarinet": "3.0.2"✅ Replace all imports of
@hiroystems/clarinet-sdkto@stacks/clarinet-sdk✅ Optionally, update Vitest to v4 and update vitest config
How to migrate?
VSCode
In VSCode (or similar variants such as Cursor), you'll have to uninstall the Hiro Systems "Clarity" extension in favor of the new "Clarity - Stacks Labs" extension published by Stacks Labs.
The name of the extension will eventually revert to "Clarity" at some point, once the Hiro one is deprecated.
You can also see it in the online marketplace - feel free to leave a 5 ⭐ review if you enjoy Clarinet!
NPM
New Clarinet projects created with 3.9.0 will automatically use the
@stacks/NPM package.However, older projects require a few manual updates to be migrated.
package.jsonIn your package.json, replace
@hirosystems/clarinet-sdkwith the@stacksone, and upgradevitest-environement-clarinetto version 3.0.1. Your dependencies should look like that.Optionally, you can upgrade to Vitest@4, more on that below
tsconfig.jsonIn the tsconfig.json, you need to update the
"includes"config like so, so that is using@stacks/clarinet-sdkvitest.config.ts(or.js)Your Vitest config has to import
@stacks/clarinet-sdk/vitest.Double check that you import
defineConfigfrom"vitest/config"and not"vite".If you upgraded to Vitest v4, a few other changes are needed in
defineConfig:Docker image
The Clarinet Docker image has been moved from Docker Hub to GitHub Container Registry (ghcr). It can be used like so:
Double check
Search for all occurrences of
@hirosystems/clarinet-sdkin your project; they'll likely need to be updated to@stacks/clarinet-sdk.Tip
If you're using third-party tools like rendezvous or clarigen, they now both support
@stacks/clarinet-sdk.See it in action
See how the clarity-starter project was updated in this PR:
stx-labs/clarity-starter#17
Conclusion
We understand that these types of breaking changes can be frustrating. Although it's not ideal, we need it to move forward.
If you experience any issues with the migrations, reach out to us in the
#clarinetchannel on Discord or reply to this discussion.All reactions