Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to "mopsize" a package #175

Open
vporton opened this issue Nov 25, 2023 · 1 comment
Open

Unable to "mopsize" a package #175

vporton opened this issue Nov 25, 2023 · 1 comment

Comments

@vporton
Copy link

vporton commented Nov 25, 2023

Trying to switch from Vessel to MOPS in my package, I receive an unclear error message:

$ git clone https://github.com/vporton/NacDB
$ cd NacDB
$ mops init
...
Dependency https://github.com/kritzcreek/motoko-matchers#v1.2.0 (global cache)
dhall-to-json error: Command failed with exit code 1: dhall-to-json --file /home/porton/Projects/NacDB/.mops/_github/matchers#v1.2.0/package-set.dhall
@ZenVoich
Copy link
Owner

There is a known issue with matchers v1.2.0. You can skip it and it should work

I tried to migrate your package, and this is mops.toml that I think should be after the migration:

[dependencies]
base = "0.9.0"
btree = "https://github.com/canscale/StableHeapBTreeMap#v0.3.1@d4540d1342843bcc7b5d6250c388dc710cce2fec"
stable-rbtree = "https://github.com/canscale/StableRBTree#v0.6.1@465e86cd7c7755722bffda47fd707021da344956"
stable-buffer = "https://github.com/canscale/StableBuffer#v0.2.0@1af0e8814bac5ca7ed23a6c094204b46d9056c2e"
sha = "https://github.com/enzoh/motoko-sha#master@9e2468f51ef060ae04fde8d573183191bda30189"

[dev-dependencies]
matchers = "https://github.com/kritzcreek/motoko-matchers#3dac8a071b69e4e651b25a7d9683fe831eb7cffd@3dac8a071b69e4e651b25a7d9683fe831eb7cffd"

and after you populate the [package] section you will be able to publish it to the mops registry.
Example https://github.com/ZenVoich/test/blob/main/mops.toml

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

No branches or pull requests

2 participants