hhmx.de

d@nny mc²

Föderation EN Sa 01.02.2025 11:02:35

might be making a tiny script to migrate all my github repos to codeberg since it seems this has not yet been automated and i have way too many harebrained schemes to transfer by hand. plz lmk if i'm missing someone's script to do this already otherwise i'll post my script

d@nny mc²

Föderation EN Sa 01.02.2025 11:05:28

of course installing the codeberg CLI through AUR requires building a fuckton of rust code from source bc cargo doesn't believe in caching...........we will be solving this too

d@nny mc²

Föderation EN Sa 01.02.2025 11:06:19

lmao the build failed bc pacman used the wrong version of rust. it's almost like this language has a severe deficit of packaging protocols

d@nny mc²

Föderation EN Sa 01.02.2025 11:07:28

the -git package is pulling down an entirely separate stable rust toolchain so this one will probably work although the first should have worked too

d@nny mc²

Föderation EN Sa 01.02.2025 11:08:59

OMFG A LINK ERROR???? ok we are investigating their http api fuck this massive binary that won't build (i know this is the packager's fault and not upstream nor rust's, but it's kinda rust's fault. i think msrv would have solved this)

d@nny mc²

Föderation EN Sa 01.02.2025 11:11:16

ok so the package failed to declare a dependency on libgit2 which is again the packager's fault. but i am also running rustup update and trying the first package again

d@nny mc²

Föderation EN Sa 01.02.2025 11:12:56

it's also bc they're not using spack-rs to bootstrap their native deps and relying on the distro to do it for them!!! i solved this!!!

d@nny mc²

Föderation EN Sa 01.02.2025 11:13:48

ok so i was right and rustup update fixed the AUR build and now i have a codeberg cli. let's see if it can migrate

d@nny mc²

Föderation EN Sa 01.02.2025 11:15:04

no!!! :( looking this up further. this has to be doable programmatically

d@nny mc²

Föderation EN Sa 01.02.2025 11:24:51

ok i captured the POST request in flight (why do network requests go away when the page reloads??? i was looking at those!!!) and gonna try it in curl

d@nny mc²

Föderation EN Sa 01.02.2025 11:30:30

BAM ok that works!!! now to learn just enough of the github api to gtfo of here

d@nny mc²

Föderation EN Sa 01.02.2025 16:20:45

so yeah this actually works beautifully codeberg.org/cosmicexplorer/co and i'm watching my terminal scroll down all my prior work from years past being reborn into a safer place and having a great time

Andy Piper

Föderation EN Sa 01.02.2025 18:13:28

@hipsterelectron is there a version of this on that I can clone from github… 😜

d@nny mc²

Föderation EN Sa 01.02.2025 18:14:39

@andypiper this one i created on codeberg directly! but unfortunately i immediately ran up against the 100 repo limit (i have a lot of ideas) so i'm now looking into self-hosting!