all repos — legit @ a76a59cf5cf5e98b53a1e418f468ca287c080e3a

Unnamed repository; edit this file 'description' to name the repository.

refactor: restructure project layout and update module path

- Move module from git.icyphox.sh/legit to codeberg.org/maxwelljensen/legit
- Restructure to standard Go layout: cmd/legit/ for main, internal/ for
  application packages (config, routes, git, git/service)
- Update .goreleaser.yaml with main path and ldflags for new module
Maxwell Jensen 85795372+maxwelljens@users.noreply.github.com
Tue, 12 May 2026 15:06:56 +0200
commit

a76a59cf5cf5e98b53a1e418f468ca287c080e3a

parent

5ba4a5747fdd66ac0ddf5742cf4c275b808df36d

M .goreleaser.yaml.goreleaser.yaml

@@ -2,10 +2,11 @@ version: 2

builds: - binary: legit + main: ./cmd/legit env: - CGO_ENABLED=0 ldflags: - - -s -w -X main.buildDate={{.Date}} -X main.version={{.Version}} + - -s -w -X codeberg.org/maxwelljensen/legit/cmd/legit.main.buildDate={{.Date}} -X codeberg.org/maxwelljensen/legit/cmd/legit.main.version={{.Version}} goos: - linux - darwin
M go.modgo.mod

@@ -1,9 +1,10 @@

-module git.icyphox.sh/legit +module codeberg.org/maxwelljensen/legit go 1.23.0 require ( github.com/alecthomas/chroma/v2 v2.14.0 + github.com/alexflint/go-arg v1.6.1 github.com/bluekeyes/go-gitdiff v0.8.0 github.com/cyphar/filepath-securejoin v0.4.1 github.com/dustin/go-humanize v1.0.1

@@ -18,7 +19,6 @@ require (

github.com/Microsoft/go-winio v0.6.2 // indirect github.com/ProtonMail/go-crypto v1.1.5 // indirect github.com/acomagu/bufpipe v1.0.4 // indirect - github.com/alexflint/go-arg v1.6.1 // indirect github.com/alexflint/go-scalar v1.2.0 // indirect github.com/aymerick/douceur v0.2.0 // indirect github.com/cloudflare/circl v1.6.0 // indirect
M main.gocmd/legit/main.go

@@ -5,8 +5,8 @@ "fmt"

"log" "net/http" - "git.icyphox.sh/legit/config" - "git.icyphox.sh/legit/routes" + "codeberg.org/maxwelljensen/legit/internal/config" + "codeberg.org/maxwelljensen/legit/internal/routes" "github.com/alexflint/go-arg" )

@@ -17,10 +17,6 @@ )

type args struct { Config string `arg:"--config" default:"./config.yaml" help:"path to config file"` -} - -func (args) Description() string { - return fmt.Sprintf("legit %s (built %s)", version, buildDate) } func (args) Version() string {
M routes/git.gointernal/routes/git.go

@@ -7,7 +7,7 @@ "log"

"net/http" "path/filepath" - "git.icyphox.sh/legit/git/service" + "codeberg.org/maxwelljensen/legit/internal/git/service" securejoin "github.com/cyphar/filepath-securejoin" )
M routes/handler.gointernal/routes/handler.go

@@ -3,7 +3,7 @@

import ( "net/http" - "git.icyphox.sh/legit/config" + "codeberg.org/maxwelljensen/legit/internal/config" ) // Checks for gitprotocol-http(5) specific smells; if found, passes
M routes/routes.gointernal/routes/routes.go

@@ -13,8 +13,8 @@ "strconv"

"strings" "time" - "git.icyphox.sh/legit/config" - "git.icyphox.sh/legit/git" + "codeberg.org/maxwelljensen/legit/internal/config" + "codeberg.org/maxwelljensen/legit/internal/git" securejoin "github.com/cyphar/filepath-securejoin" "github.com/dustin/go-humanize" "github.com/microcosm-cc/bluemonday"
M routes/template.gointernal/routes/template.go

@@ -9,7 +9,7 @@ "net/http"

"path/filepath" "strings" - "git.icyphox.sh/legit/git" + "codeberg.org/maxwelljensen/legit/internal/git" "github.com/alecthomas/chroma/v2/formatters/html" "github.com/alecthomas/chroma/v2/lexers" "github.com/alecthomas/chroma/v2/styles"
M routes/util.gointernal/routes/util.go

@@ -6,7 +6,7 @@ "os"

"path/filepath" "strings" - "git.icyphox.sh/legit/git" + "codeberg.org/maxwelljensen/legit/internal/git" ) func isGoModule(gr *git.GitRepo) bool {