mops icon indicating copy to clipboard operation
mops copied to clipboard

I can't install from a sub-directory

Open vporton opened this issue 1 year ago • 4 comments

mops add https://github.com/vporton/join-proxy-rust/motoko#49c2e31431deb5455c33160a2ddbf9b1e292ef08

adds not just the sub-directory motoko but the entire join-proxy-rust package, what is wrong.

vporton avatar Jun 15 '24 12:06 vporton

Installing sub-directory from GitHub is not supported

ZenVoich avatar Jun 18 '24 14:06 ZenVoich

Installing sub-directory from GitHub is not supported

This feature request is asking exactly to support it.

vporton avatar Jun 18 '24 15:06 vporton

I have a similar issue in that I cannot do mops publish with a repository in a sub-directory. I would be happy if the repository field would allow to specify sub-directories of Github repositories. Here is an example where the mops.toml is not at the repository root. Currently the only workaround I found is to remove the repository field and instead mention the repository in the README, but this has the downside that in the Package Quality section it says Repository: no.

fspreiss avatar Jun 11 '25 06:06 fspreiss

@fspreiss you can specify sub-directory in repository url https://github.com/ZenVoich/mops/issues/264#issuecomment-2814790665

ZenVoich avatar Jun 11 '25 07:06 ZenVoich