ZenVoich / mops

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

Private Repo Access #163

Open skilesare opened 10 months ago

skilesare commented 10 months ago

I tried to add a private repo to my project and it seems that it can't find it:

afat@virusbook ICRC3 % mops install          
Installing https://github.com/skilesare/StableWriteOnly.mo [          ]
Error: failed to download from GitHub: https://github.com/skilesare/StableWriteOnly.mo/archive/master.zip

Will it be possible to add these in the future?

ZenVoich commented 10 months ago

I'm not sure about adding such functionality in the near future, seems like a special case to me.

Maybe local packages could be useful for this case?

[dependencies]
local-pkg = "../my-pkg"
skilesare commented 10 months ago

I tried a local package(I agree that is probably the way to go) but was having an error.

I think I may have had the hash to indicate a version and that was messing it up...I guess I can't treat it like a git repo :)

I just tried it again without the version info and it worked.

I'm not sure if this is documented or not, but if not, it may be helpful!

Feel free to close. ᐧ

On Thu, Nov 2, 2023 at 8:46 AM Zen Voich @.***> wrote:

I'm not sure about adding such functionality in the near future, seems like a special case to me.

Maybe local packages could be useful for this case?

[dependencies]local-pkg = "../my-pkg"

— Reply to this email directly, view it on GitHub https://github.com/ZenVoich/mops/issues/163#issuecomment-1790767230, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE5CO4DVJ6X245TF56FUXLYCOP2RAVCNFSM6AAAAAA6ZNDMGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJQG43DOMRTGA . You are receiving this because you authored the thread.Message ID: @.***>

-- Austin Fatheree twitter: @afat http://twitter.com/afat

skilesare commented 10 months ago

I take that back. It seems that it will work for building with DFX, but the motoko type(v0.14.2) checker in visual studio barfs

My mops entry is

mypackage = "../mypackage"

Error: file "/mypackage/src" (for package mypackage) does not existMotoko(M0012)

I'll try to update my plugin and see if maybe it is