oasis icon indicating copy to clipboard operation
oasis copied to clipboard

Cloning mtdev fails

Open jdhackshaw opened this issue 1 month ago • 3 comments

Cloning into 'mtdev'...
warning: redirecting to https://bitmath.se/org/git/mtdev.git/
error: Unable to get pack index https://bitmath.se/org/git/mtdev.git/objects/pack/pack-a276a0f6b46b53243ebeb936ed849159fd3afb70.idx
error: Unable to find 925ad71be727ec8da3cd71a2c1c965d336ff856f under https://bitmath.se/org/git/mtdev.git
Cannot obtain needed object 925ad71be727ec8da3cd71a2c1c965d336ff856f
while processing commit 9035c2225494b80b02e985fc7ee77880e0bd6993.
error: fetch failed.

ninja commit fails because it can't clone mtdev.

jdhackshaw avatar Nov 26 '25 12:11 jdhackshaw

Seems to be an issue with git over on bitmath. It still appears to be down on my end aswell. You could try again in a few days, hoping theyve fixed it by then, or switch to use the tarball instead. I checked on my end, and the tarball atleast is downloadable.

hovercats avatar Nov 29 '25 12:11 hovercats

Do you have any advice on how do this? I tried changing the URL to the Debian version of the repo (https://salsa.debian.org/debian/mtdev) and the GitHub mirror (https://github.com/rydberg/mtdev) but the install script expected a specific commit. Would I have to turn off the cloning step in the script to avoid this issue?

jdhackshaw avatar Nov 30 '25 01:11 jdhackshaw

pkg/mtdev/src is just a git submodule, so it behaves like any other submodule would really. changing the url and fetching the submodule should technically be all you need.

the cloning behaviour is controlled by the last line in the gen.lua file per package. if it says git, it uses a submodule, if its curl, it fetches tarballs.

if you wanna use the tarball instead, just change the afforementioned line and this behaviour is now changed. youd need an url and sha256 file aswell so that oasis will know how to download the tarball, aswell as verifying it. this should be everything you need. might wanna remove the submodule aswell, so that it wont interfere in any way.

hovercats avatar Dec 01 '25 14:12 hovercats