fix(git): restore git->readcredentials so appl/cmd builds - #556
Conversation
push.b calls git->readcredentials(gitdir), which is declared in no .m interface, so mk install in appl/cmd fails. The tracked push.dis was built when the function existed, which is why only a from-source build hits it. The rebuilt dis/cmd/git/push.dis is byte-identical to the committed one, so this restores the removed signature rather than inventing a new one.
e6f841f to
2f4929a
Compare
|
Closing this — the diagnosis is right and the fix landed, just by the other You found a real break: Where this differs is the remedy. The point of removing it was that #559 fixed the same break the other way: the read moved into That's on master now, so Two things from your PR that did carry over: the reproduction If you think the credential read belongs back in the library rather than the |
Summary
appl/cmd/git/push.b:163callsgit->readcredentials, which is declared in no.minterface, somk installunderappl/cmdfails on mastermodule/git.m, implement it besidegetremoteurlinappl/lib/git/git.b<gitdir>/credentials, trims, returns that one line or nilpush.diswas built while the function still existed, so only a from-source build hits thisTest plan
cd appl/cmd/git; mk install— reproducedpush.b:163: 'readcredentials' is not a member of 'git' of type Giton 90b1365, clean aftercd appl/cmd; mk install— wasexit(1), now exits 0dis/cmd/git/push.disis byte-identical to the committed one (md5b64151bb27c6d3cb4fcb015d97c9521b), so this restores the removed signature rather than inventing one/tests/runner.disnot run — no test coverspushChecklist
.discommitted fromappl/ortests/Two things I noticed here and did not fix: no CI builds the Limbo tree from source, which is why this survived; and after
mk installinappl/cmd, five tracked.disfiles do not reproduce from their sources —auditget,countfs,newuser,nsaudit,trfs. Everything else rebuilt byte-identically. Happy to open either as its own issue.