legit

Fork of https://git.icyphox.sh/legit

Commits at fde482b9b79eb13cb5a1bcdf944ed09ed4396fd8

  1. 48a8e602 Rename routes.Handlers to routes.Handler *http.ServeMux implements http.Handler interface. It does not expose multiple handlers. Shota FUJI authored at Shota FUJI comitted at
  2. f483e5f0 Remove module version constraint for go-diff I could not find why it's there. Removing it did not cause panic or visible changes on diff view so I assume the bug or whatever was fixed. Shota FUJI authored at Shota FUJI comitted at
  3. 8640d6af Profiling pages (debug build only) To optimize this software more, I need profilier to see which part is taking a time. Shota FUJI authored at Shota FUJI comitted at
  4. 479a7de1 Don't output relative datetime in repo list HTML The initial motivation is to minimize third-party dependencies. However, this turned out to be more than that: * this makes the repo list page pure (repos state => HTML) so the page is now able to be cached. * allows future customization for displaying locale. Shota FUJI authored at Shota FUJI comitted at
  5. 113da4a6 Fix git operation fails in OCI image Because "git" is not in scratch image. This increases image size from 30MB-ish to 125MB, but better than broken one? As go-git v6 is still alpha, including git binary inside a container is the only solution for now. https://tangled.org/pocka.jp/legit/issues/16 Shota FUJI authored at Shota FUJI comitted at
  6. 285c1c48 Add CHANGELOG.md Shota FUJI authored at Shota FUJI comitted at
  7. 01ad54e3 Fix clone / fetch error on Nix built binary https://github.com/NixOS/nixpkgs/issues/443125 Shota FUJI authored at Shota FUJI comitted at
  8. 079fdc12 Add directory access allowlist build flag for unveil/Landlock git binary usually links against system libraries. However the paths of system libraries varys by operating system / distribution. This flag is intended to used by system admin (build from source) and distributor. I did not test unveil, so whether OpenBSD user needs to reach for this flag is unknown. Shota FUJI authored at Shota FUJI comitted at
  9. dcb65989 Fix exec error on git protocol endpoints Shota FUJI authored at Shota FUJI comitted at
  10. 9a21725e Add debug devShell Shota FUJI authored at Shota FUJI comitted at
  11. 3693a076 Move test server code under nix/ directory Shota FUJI authored at Shota FUJI comitted at
  12. 8c025321 Move podman devShell code under nix/ directory Shota FUJI authored at Shota FUJI comitted at
  13. 5f23dbd2 NixOS / Home Manager modules And a NixOS configuration for testing. Flake is way better than manual overlay or upstreaming. Shota FUJI authored at Shota FUJI comitted at
  14. c4c4aa0b Extract main package derivation to dedicated Nix file For readability. Having "default.nix" lets viewers know how to build the package and/or what the package is made of. Shota FUJI authored at Shota FUJI comitted at
  15. ee1ea99b Configure podman devShell Dockerfile has been there under contrib/ directory but is unmaintained (as expected for "contrib" objects.) Since this project (both original and this fork) is pure Go project without CGO, writing Dockerfile must be easy so I wrote it. The "podman" devShell is tested on NixOS. I don't know / care if it works on other platforms. I once set up dprint-dockerfile but abandoned it. The plugin is not in a quality I saw in other dprint official plugins. Almost zero config knobs, "fixing" inner-comment text's indentation, unwrapping multiline JSON array (CMD), etc. Shota FUJI authored at Shota FUJI comitted at
  16. 23788d5e Add dprint to nix apps Shota FUJI authored at Shota FUJI comitted at
  17. 5647b44c Make config file optional It's for OCI container. The essential config keys are now able to be populated via CLI flags. Shota FUJI authored at Shota FUJI comitted at
  18. 196f7e5d Allow omitting "server.name" option To make config file optional. Shota FUJI authored at Shota FUJI comitted at
  19. 1c31b6dd Use Landlock to restrict filesystem access on Linux https://tangled.org/pocka.jp/legit/issues/13 Shota FUJI authored at Shota FUJI comitted at
  20. 1ba6a0a9 Remove legacy build constraints This fork requires Go v1.24, so the legacy notation is no longer necessary. The old one requries different syntax for !(A || B). Shota FUJI authored at Shota FUJI comitted at
  21. 436d14d4 Prevent path traversal outside project boundary in preview links It's not that harmful, but cross-project links are confusing and non-portable. Shota FUJI authored at Shota FUJI comitted at
  22. 99ef4012 Add tests for internal link transformer https://tangled.org/pocka.jp/legit/issues/10 Shota FUJI authored at Shota FUJI comitted at
  23. 727c9690 Remove unnecessary dot from internal links Browsers will normalize fine, though. Shota FUJI authored at Shota FUJI comitted at
  24. 6450aeff Add tests for internal media source link transformer https://tangled.org/pocka.jp/legit/issues/10 Shota FUJI authored at Shota FUJI comitted at
  25. afe955fa Fix incorrect URL for image src if it has query params Shota FUJI authored at Shota FUJI comitted at
  26. 21b3950e Use monospace for object hash For commit hashes, use of monospace is preferred because that makes the width of commit hash consistent. "Commits for" in log page can be a commit hash but I kept it as-is because most people would browse on branches. Shota FUJI authored at Shota FUJI comitted at
  27. 4c27b217 Don't use system-ui for content texts "system-ui" is for UI texts, not for content texts. From now on, controls and labels use system-ui and content texts use --font-content (sans-serif). Shota FUJI authored at Shota FUJI comitted at
  28. 83c692e6 Fix header and footer not being sticky on wide viewport Regression introduced at somewhere. Shota FUJI authored at Shota FUJI comitted at
  29. c6e0d57a Fix footer partially occlude aside section on short viewport https://tangled.org/pocka.jp/legit/issues/12 Shota FUJI authored at Shota FUJI comitted at
  30. ac5d7349 Fix commit hash on aside overflows horizontally https://tangled.org/pocka.jp/legit/issues/11 Shota FUJI authored at Shota FUJI comitted at