-
Notifications
You must be signed in to change notification settings - Fork 23
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
chore: use npx
to run mops
#288
base: main
Are you sure you want to change the base?
Conversation
"build": ["mops-cli build service/saved/Saved.mo"], | ||
"candid": "target/Saved/Saved.did", | ||
"wasm": "target/Saved/Saved.wasm", | ||
"build": ["mkdir -p target/saved && $(dfx cache show)/moc $(npx mops sources) service/saved/Saved.mo -o target/saved/saved.wasm --release --idl --stable-types --public-metadata candid:service"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be npx ic-mops
rather than npx mops
to reference the ic-mops
npm package.
I usually also include the --no
flag (npx --no ic-mops
) to remove the prompt to globally install Mops if the developer hasn't yet run npm install
.
@@ -1,8 +1,7 @@ | |||
[dependencies] | |||
base = "0.12.1" | |||
base = "0.13.4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we able to use the latest base library version?
base = "0.13.4" | |
base = "0.14.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had that, lamentably it is not compatible as a primitive is missing. I'll update when dfx
0.25 is out.
287eaf7#diff-f51126c5f74c75e290067ee5f31e8c8d13eb2aaba192977e167c148c1222b625R2
This PR removes the dependency of the somewhat ad-hoc
mops-cli
command (and instead building withmoc
directly), and makesmops
available as a dev tool fromnpm
. Furthermore it bumpsbase
to a more recent one.Note:
mops
has the nasty habit of changingDFX_MOC_PATH
in the GitHub environment,env GITHUB_ENV=/dev/null
makes sure that it cannot mess with it.