ZenVoich / mops

Package manager for the Motoko programming language
https://mops.one
MIT License
35 stars 3 forks source link

Unable to "mopsize" a package #175

Open vporton opened 7 months ago

vporton commented 7 months ago

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 commented 7 months ago

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