News for hackers. Stuff that matters.
Re:Show HN: Gogit – Just enough Git (in Go) to push itself t... by diarrhea on Saturday July 29, 2023 @05:34PM (#36924899)
I don’t know what that is, but their docs very prominently and strongly say this:

> However, we do not maintain a stable Go language API or ABI, as Git LFS is intended to be used solely as a compiled binary utility. Please do not import the git-lfs module into other Go code and do not rely on it as a source code dependency.

https://github.com/git-lfs/git-lfs#limitations

Re:Show HN: Gogit – Just enough Git (in Go) to push itself t... by 38 on Saturday July 29, 2023 @05:57PM (#36925108)
> I don’t know what that is

its a standard output from `go doc`, rendered as HTML. if you dont recognize that, then you aren't really in a position to be commenting on the topic. nothing is stopping anyone from pinning to a tag:

https://github.com/git-lfs/git-lfs/tags

or even a commit and relying on a specific version of the software. yes upgrades might be painful but a module IS available.

Re:Show HN: Gogit – Just enough Git (in Go) to push itself t... by yjftsjthsd-h on Saturday July 29, 2023 @06:28PM (#36925404)
That you technically have the ability to call into an internal module does not in any way constitute it "offering itself up as a library", and doesn't make it effectively useful in that way.
Re:Show HN: Gogit – Just enough Git (in Go) to push itself t... by IggleSniggle on Saturday July 29, 2023 @06:24PM (#36925352)
It is a module. It is available. It does not offer itself up as a library.
Re:Show HN: Gogit – Just enough Git (in Go) to push itself t... by 38 on Saturday July 29, 2023 @06:29PM (#36925410)
> It is a module.

> It does not offer itself up as a library.

in Go code, those are the same thing.

Re:Show HN: Gogit – Just enough Git (in Go) to push itself t... by IggleSniggle on Saturday July 29, 2023 @06:33PM (#36925459)
A library and a module are the same. Having an open and available module does not make it "offered up as a library," was the point I was trying (and failing, evidently), to make.
Re:Show HN: Gogit – Just enough Git (in Go) to push itself t... by Brian_K_White on Saturday July 29, 2023 @06:58PM (#36925687)
You made the point perfectly. So did the docs in the first place. It's not on you that someone decides not to agree the sky is blue because they use their own definition of blue.
Re:Show HN: Gogit – Just enough Git (in Go) to push itself t... by dang on Saturday July 29, 2023 @07:36PM (#36925980)
Please don't cross into personal attack. It destroys what this site is for, and you can easily make your substantive points without it.

If you wouldn't mind reviewing https://news.ycombinator.com/newsguidelines.html and taking the intended spirit of the site more to heart, we'd be grateful.

Re:Show HN: Gogit – Just enough Git (in Go) to push itself t... by dmoy on Saturday July 29, 2023 @09:47PM (#36926912)
Anything's a library if you're sufficiently motivated

- Hyrum Wright, probably

Re:Show HN: Gogit – Just enough Git (in Go) to push itself t... by jrockway on Sunday July 30, 2023 @01:26AM (#36928116)
I made Kubernetes into a library once. Like the apiserver and default controllers, running in-process. Copying and pasting were involved. I was not expecting support.

If code is out there under a compatible license, you can do whatever you want with it. If it breaks, you get to keep both pieces.