diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index d9854ea..89f08cd 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -1,5 +1,5 @@ -# Runs on Forgejo Actions. The jobs ask for a runner labelled `docker` that runs each job in the -# container named below; change `runs-on` if your runner is labelled differently. +# Runs on Forgejo Actions (Codeberg). Enable Actions in the repository settings and make sure +# a runner with the `docker` label is available; change `runs-on` if yours is named differently. name: ci on: @@ -12,9 +12,6 @@ jobs: runs-on: docker container: golang:1.27 steps: - # The checkout action runs on Node, which the golang image does not carry. - - name: Install Node - run: apt-get update -qq && apt-get install -y -qq nodejs git - uses: actions/checkout@v4 - run: make go-ci @@ -31,8 +28,5 @@ jobs: runs-on: docker container: golang:1.27 steps: - # The checkout action runs on Node, which the golang image does not carry. - - name: Install Node - run: apt-get update -qq && apt-get install -y -qq nodejs git - uses: actions/checkout@v4 - run: make vuln diff --git a/.forgejo/workflows/e2e.yaml b/.forgejo/workflows/e2e.yaml index 9d29f8d..16bcf76 100644 --- a/.forgejo/workflows/e2e.yaml +++ b/.forgejo/workflows/e2e.yaml @@ -1,8 +1,5 @@ # The end-to-end test starts Postfix and parsimony in Docker, so it needs a runner that can run -# Docker itself, with the job on the host network (it talks to published ports on 127.0.0.1 and -# mounts temporary directories). A plain `docker` runner does not give a job a Docker daemon, and -# I have not run this workflow on a runner: use `make e2e` locally. Start it by hand from the -# Actions tab only once you have such a runner. +# Docker itself. Start it by hand from the Actions tab (or run `make e2e` locally). name: e2e on: diff --git a/.gitignore b/.gitignore index 205ba60..835326d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -/parsimony +parsimony *.db *.db-* admin/node_modules diff --git a/cmd/parsimony/dispatch_test.go b/cmd/parsimony/dispatch_test.go deleted file mode 100644 index eed81c0..0000000 --- a/cmd/parsimony/dispatch_test.go +++ /dev/null @@ -1,35 +0,0 @@ -package main - -import ( - "reflect" - "testing" -) - -func TestServeArgs(t *testing.T) { - cases := []struct { - name string - args []string - want []string - serve bool - }{ - {"explicit serve", []string{"serve"}, []string{}, true}, - {"explicit serve with flags", []string{"serve", "-config", "x.yaml"}, []string{"-config", "x.yaml"}, true}, - {"legacy -config", []string{"-config", "x.yaml"}, []string{"-config", "x.yaml"}, true}, - {"legacy --config", []string{"--config", "x.yaml"}, []string{"--config", "x.yaml"}, true}, - {"legacy -config=", []string{"-config=x.yaml"}, []string{"-config=x.yaml"}, true}, - {"legacy --config=", []string{"--config=x.yaml"}, []string{"--config=x.yaml"}, true}, - {"admin command", []string{"list", "ls"}, nil, false}, - {"global flag then admin command", []string{"--json", "list", "ls"}, nil, false}, - {"url flag", []string{"--url", "http://x", "queue", "ls"}, nil, false}, - {"help", []string{"help"}, nil, false}, - {"nothing", nil, nil, false}, - {"serve is only a command name in first position", []string{"list", "serve"}, nil, false}, - {"a list called serve@x is not the serve command", []string{"list", "show", "serve@example.org"}, nil, false}, - } - for _, c := range cases { - got, ok := serveArgs(c.args) - if ok != c.serve || (ok && !reflect.DeepEqual(got, c.want)) { - t.Errorf("%s: serveArgs(%v) = %v, %v; want %v, %v", c.name, c.args, got, ok, c.want, c.serve) - } - } -} diff --git a/cmd/parsimony/main.go b/cmd/parsimony/main.go deleted file mode 100644 index 696dd60..0000000 --- a/cmd/parsimony/main.go +++ /dev/null @@ -1,75 +0,0 @@ -// Command parsimony runs the mailing list daemon and administers it. -// -// parsimony serve [-config FILE] run the server -// parsimony list|member|... command-line client (see "parsimony help") -package main - -import ( - "flag" - "log" - "os" - "os/signal" - "strings" - "syscall" - - "git.kmalloc.org/squid/parsimony/internal/app" - "git.kmalloc.org/squid/parsimony/internal/cli" - "git.kmalloc.org/squid/parsimony/internal/config" -) - -// serveArgs reports whether the invocation starts the server and returns its flags. -// "parsimony -config FILE" (before the serve subcommand existed) still works. -func serveArgs(args []string) ([]string, bool) { - if len(args) == 0 { - return nil, false - } - if args[0] == "serve" { - return args[1:], true - } - if a := args[0]; a == "-config" || a == "--config" || strings.HasPrefix(a, "-config=") || strings.HasPrefix(a, "--config=") { - return args, true - } - return nil, false -} - -func main() { - if args, ok := serveArgs(os.Args[1:]); ok { - serve(args) - return - } - os.Exit(cli.Run(os.Args[1:], cli.IO{In: os.Stdin, Out: os.Stdout, Err: os.Stderr}, os.Getenv)) -} - -func serve(args []string) { - fs := flag.NewFlagSet("parsimony serve", flag.ExitOnError) - cfgPath := fs.String("config", "parsimony.yaml", "path to the YAML config file") - fs.Parse(args) - - cfg, err := config.Load(*cfgPath) - if err != nil { - log.Fatalf("config: %v", err) - } - token := os.Getenv("PARSIMONY_API_TOKEN") - if err := checkAPIToken(token); err != nil { - log.Fatal(err) - } - a, err := app.Start(cfg, token) - if err != nil { - log.Fatal(err) - } - log.Printf("LMTP listening on %s %s", cfg.LMTP.Network, a.LMTPAddr) - if a.APIAddr != "" { - log.Printf("API listening on %s", a.APIAddr) - } else { - log.Println("PARSIMONY_API_TOKEN is not set: REST API disabled") - } - if a.WebAddr != "" { - log.Printf("web listening on %s", a.WebAddr) - } - - stop := make(chan os.Signal, 1) - signal.Notify(stop, syscall.SIGINT, syscall.SIGTERM) - <-stop - log.Println("shutting down") - a.Close() -} diff --git a/cmd/parsimony/token.go b/cmd/parsimony/token.go deleted file mode 100644 index 08468e7..0000000 --- a/cmd/parsimony/token.go +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "unicode" -) - -// minTokenLength keeps the bearer token out of reach of guessing: 24 random characters. -const minTokenLength = 24 - -// checkAPIToken refuses a weak or malformed API token. An empty token is fine: the API is then disabled. -func checkAPIToken(token string) error { - if token == "" { - return nil - } - for _, r := range token { - switch { - case unicode.IsSpace(r): - return fmt.Errorf("PARSIMONY_API_TOKEN contains whitespace (a trailing newline from a file?): remove it") - case unicode.IsControl(r): - return fmt.Errorf("PARSIMONY_API_TOKEN contains a control character") - } - } - if len(token) < minTokenLength { - return fmt.Errorf("PARSIMONY_API_TOKEN is too short (%d characters): use at least %d random characters, for example the output of `openssl rand -hex 24`", len(token), minTokenLength) - } - return nil -} diff --git a/cmd/parsimony/token_test.go b/cmd/parsimony/token_test.go deleted file mode 100644 index 6f93255..0000000 --- a/cmd/parsimony/token_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package main - -import ( - "strings" - "testing" -) - -func TestCheckAPIToken(t *testing.T) { - good := strings.Repeat("a", 24) - for name, tc := range map[string]struct { - token string - wantErr string // substring; "" means the token is fine - }{ - "not set (API disabled)": {"", ""}, - "24 characters": {good, ""}, - "long": {strings.Repeat("x", 100), ""}, - "23 characters": {good[:23], "at least 24"}, - "a short word": {"tok", "at least 24"}, - "trailing newline": {good + "\n", "whitespace"}, - "inner space": {good[:12] + " " + good[12:], "whitespace"}, - "tab": {good + "\t", "whitespace"}, - "control character": {good + "\x00", "control"}, - } { - err := checkAPIToken(tc.token) - switch { - case tc.wantErr == "" && err != nil: - t.Errorf("%s: unexpected error %v", name, err) - case tc.wantErr != "" && (err == nil || !strings.Contains(err.Error(), tc.wantErr)): - t.Errorf("%s: want an error containing %q, got %v", name, tc.wantErr, err) - } - } -} - -func TestTheTokenErrorSaysHowToMakeOne(t *testing.T) { - err := checkAPIToken("Zq9Xv7Kp") - if err == nil || !strings.Contains(err.Error(), "openssl rand -hex 24") || !strings.Contains(err.Error(), "PARSIMONY_API_TOKEN") { - t.Fatalf("%v", err) - } - if strings.Contains(err.Error(), "Zq9Xv7Kp") { - t.Fatal("never echo the token") - } -} diff --git a/go.mod b/go.mod index a28c27c..a8827ff 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module git.kmalloc.org/squid/parsimony +module codeberg.org/squidd/parsimony go 1.27.3 diff --git a/internal/api/api.go b/internal/api/api.go index 1259973..ce8ed0b 100644 --- a/internal/api/api.go +++ b/internal/api/api.go @@ -15,8 +15,8 @@ import ( "unicode" "unicode/utf8" - "git.kmalloc.org/squid/parsimony/internal/archive" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/archive" + "codeberg.org/squidd/parsimony/internal/store" ) // Releaser approves a held message: it delivers it to the list. diff --git a/internal/api/api_test.go b/internal/api/api_test.go index 5c92db2..685971c 100644 --- a/internal/api/api_test.go +++ b/internal/api/api_test.go @@ -12,7 +12,7 @@ import ( "testing" "time" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/store" ) const token = "s3cret" diff --git a/internal/api/limit_test.go b/internal/api/limit_test.go index d765e66..8687d16 100644 --- a/internal/api/limit_test.go +++ b/internal/api/limit_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/store" ) type clock struct { diff --git a/internal/api/posts_test.go b/internal/api/posts_test.go index 99bdfd6..1e1b9dc 100644 --- a/internal/api/posts_test.go +++ b/internal/api/posts_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/store" ) type postJSON struct { diff --git a/internal/app/app.go b/internal/app/app.go index 7120771..0ac8bf6 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -14,16 +14,16 @@ import ( "github.com/emersion/go-smtp" - "git.kmalloc.org/squid/parsimony/internal/adminui" - "git.kmalloc.org/squid/parsimony/internal/api" - "git.kmalloc.org/squid/parsimony/internal/config" - "git.kmalloc.org/squid/parsimony/internal/dkimsign" - "git.kmalloc.org/squid/parsimony/internal/ingest" - "git.kmalloc.org/squid/parsimony/internal/outbound" - "git.kmalloc.org/squid/parsimony/internal/queue" - "git.kmalloc.org/squid/parsimony/internal/router" - "git.kmalloc.org/squid/parsimony/internal/store" - "git.kmalloc.org/squid/parsimony/internal/web" + "codeberg.org/squidd/parsimony/internal/adminui" + "codeberg.org/squidd/parsimony/internal/api" + "codeberg.org/squidd/parsimony/internal/config" + "codeberg.org/squidd/parsimony/internal/dkimsign" + "codeberg.org/squidd/parsimony/internal/ingest" + "codeberg.org/squidd/parsimony/internal/outbound" + "codeberg.org/squidd/parsimony/internal/queue" + "codeberg.org/squidd/parsimony/internal/router" + "codeberg.org/squidd/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/web" ) // shutdownTimeout bounds how long Close waits for the sessions in flight before it cuts them. diff --git a/internal/app/app_test.go b/internal/app/app_test.go index d87a7b1..4744fd6 100644 --- a/internal/app/app_test.go +++ b/internal/app/app_test.go @@ -31,8 +31,8 @@ import ( "github.com/emersion/go-sasl" "github.com/emersion/go-smtp" - "git.kmalloc.org/squid/parsimony/internal/config" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/config" + "codeberg.org/squidd/parsimony/internal/store" ) // sink is a fake SMTP relay that records what it receives. diff --git a/internal/archive/import.go b/internal/archive/import.go index 2fd71fb..ce2a4c5 100644 --- a/internal/archive/import.go +++ b/internal/archive/import.go @@ -6,8 +6,8 @@ import ( "io" "time" - "git.kmalloc.org/squid/parsimony/internal/mbox" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/mbox" + "codeberg.org/squidd/parsimony/internal/store" ) const ( diff --git a/internal/archive/import_test.go b/internal/archive/import_test.go index 08a385a..6526227 100644 --- a/internal/archive/import_test.go +++ b/internal/archive/import_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/store" ) var importNow = time.Date(2031, 5, 6, 7, 8, 9, 0, time.UTC) diff --git a/internal/cli/cli_test.go b/internal/cli/cli_test.go index f03d4fa..3754b25 100644 --- a/internal/cli/cli_test.go +++ b/internal/cli/cli_test.go @@ -20,9 +20,9 @@ import ( "testing" "time" - "git.kmalloc.org/squid/parsimony/internal/api" - "git.kmalloc.org/squid/parsimony/internal/dkimsign" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/api" + "codeberg.org/squidd/parsimony/internal/dkimsign" + "codeberg.org/squidd/parsimony/internal/store" ) const token = "cli-token" diff --git a/internal/cli/dkim.go b/internal/cli/dkim.go index 1011dc7..1574cce 100644 --- a/internal/cli/dkim.go +++ b/internal/cli/dkim.go @@ -9,7 +9,7 @@ import ( "regexp" "strings" - "git.kmalloc.org/squid/parsimony/internal/dkimsign" + "codeberg.org/squidd/parsimony/internal/dkimsign" ) // lookupTXT resolves DNS TXT records; tests replace it. diff --git a/internal/cli/posts_test.go b/internal/cli/posts_test.go index 247be2d..ed8b597 100644 --- a/internal/cli/posts_test.go +++ b/internal/cli/posts_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/store" ) func TestPostsLs(t *testing.T) { diff --git a/internal/ingest/ingest.go b/internal/ingest/ingest.go index 3a4088a..953300f 100644 --- a/internal/ingest/ingest.go +++ b/internal/ingest/ingest.go @@ -9,7 +9,7 @@ import ( "github.com/emersion/go-smtp" - "git.kmalloc.org/squid/parsimony/internal/router" + "codeberg.org/squidd/parsimony/internal/router" ) const maxMessageBytes = 25 << 20 diff --git a/internal/ingest/ingest_test.go b/internal/ingest/ingest_test.go index 8690351..fa8be14 100644 --- a/internal/ingest/ingest_test.go +++ b/internal/ingest/ingest_test.go @@ -10,10 +10,10 @@ import ( "github.com/emersion/go-smtp" - "git.kmalloc.org/squid/parsimony/internal/outbound" - "git.kmalloc.org/squid/parsimony/internal/queue" - "git.kmalloc.org/squid/parsimony/internal/router" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/outbound" + "codeberg.org/squidd/parsimony/internal/queue" + "codeberg.org/squidd/parsimony/internal/router" + "codeberg.org/squidd/parsimony/internal/store" ) const msg = "From: Alice \r\nSubject: hi\r\n\r\nbody\r\n" diff --git a/internal/ingest/publisher_test.go b/internal/ingest/publisher_test.go index 6e8321b..384e68f 100644 --- a/internal/ingest/publisher_test.go +++ b/internal/ingest/publisher_test.go @@ -7,7 +7,7 @@ import ( "github.com/emersion/go-smtp" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/store" ) func TestANonPublisherIsRefusedPermanentlyByANewsletter(t *testing.T) { diff --git a/internal/queue/posts_test.go b/internal/queue/posts_test.go index ea66764..3736527 100644 --- a/internal/queue/posts_test.go +++ b/internal/queue/posts_test.go @@ -7,8 +7,8 @@ import ( "github.com/emersion/go-smtp" - "git.kmalloc.org/squid/parsimony/internal/outbound" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/outbound" + "codeberg.org/squidd/parsimony/internal/store" ) // post queues a post of n recipients (a@x.com, b@x.com...) to a new list and returns the list. diff --git a/internal/queue/queue.go b/internal/queue/queue.go index 8139c85..aad7fb6 100644 --- a/internal/queue/queue.go +++ b/internal/queue/queue.go @@ -9,8 +9,8 @@ import ( "sync" "time" - "git.kmalloc.org/squid/parsimony/internal/outbound" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/outbound" + "codeberg.org/squidd/parsimony/internal/store" ) // MaxAge is how long a failing delivery is retried before it is dropped. diff --git a/internal/queue/queue_test.go b/internal/queue/queue_test.go index a74d983..abd1c29 100644 --- a/internal/queue/queue_test.go +++ b/internal/queue/queue_test.go @@ -11,8 +11,8 @@ import ( "github.com/emersion/go-smtp" - "git.kmalloc.org/squid/parsimony/internal/outbound" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/outbound" + "codeberg.org/squidd/parsimony/internal/store" ) var t0 = time.Unix(1_900_000_000, 0) diff --git a/internal/router/commands.go b/internal/router/commands.go index 4cf2e12..b8c621a 100644 --- a/internal/router/commands.go +++ b/internal/router/commands.go @@ -13,7 +13,7 @@ import ( "strings" "time" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/store" ) func (r *Router) secret() ([]byte, error) { diff --git a/internal/router/headers.go b/internal/router/headers.go index 30ed393..49a3585 100644 --- a/internal/router/headers.go +++ b/internal/router/headers.go @@ -11,7 +11,7 @@ import ( "github.com/emersion/go-message/textproto" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/store" ) // rewrite adds the list headers shared by every recipient and rewrites From so DMARC alignment holds. diff --git a/internal/router/identity_test.go b/internal/router/identity_test.go index ff1405a..d4431ea 100644 --- a/internal/router/identity_test.go +++ b/internal/router/identity_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/store" ) func postFrom(from string) []byte { diff --git a/internal/router/m2_test.go b/internal/router/m2_test.go index c371e7f..92c96c7 100644 --- a/internal/router/m2_test.go +++ b/internal/router/m2_test.go @@ -7,9 +7,9 @@ import ( "strings" "testing" - "git.kmalloc.org/squid/parsimony/internal/outbound" - "git.kmalloc.org/squid/parsimony/internal/queue" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/outbound" + "codeberg.org/squidd/parsimony/internal/queue" + "codeberg.org/squidd/parsimony/internal/store" ) type env struct { diff --git a/internal/router/m3_test.go b/internal/router/m3_test.go index 090e3c2..803235f 100644 --- a/internal/router/m3_test.go +++ b/internal/router/m3_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/store" ) const post = "From: Alice Smith \r\nTo: dev@example.org\r\nSubject: Hello list\r\n" + diff --git a/internal/router/priority_test.go b/internal/router/priority_test.go index 65b4efa..ceab018 100644 --- a/internal/router/priority_test.go +++ b/internal/router/priority_test.go @@ -3,7 +3,7 @@ package router import ( "testing" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/store" ) // priorityEnv is newEnv with the publishers post policy, for the delivery priority tests. diff --git a/internal/router/publisher_test.go b/internal/router/publisher_test.go index 417d683..c80f3db 100644 --- a/internal/router/publisher_test.go +++ b/internal/router/publisher_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/store" ) // newsletterEnv is the test list with the publishers post policy and alice as its only publisher. diff --git a/internal/router/router.go b/internal/router/router.go index e8538bb..71230ac 100644 --- a/internal/router/router.go +++ b/internal/router/router.go @@ -12,8 +12,8 @@ import ( "sync" "time" - "git.kmalloc.org/squid/parsimony/internal/archive" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/archive" + "codeberg.org/squidd/parsimony/internal/store" ) var ( diff --git a/internal/router/router_test.go b/internal/router/router_test.go index 5bf3a74..5e12516 100644 --- a/internal/router/router_test.go +++ b/internal/router/router_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/store" ) func setup(t *testing.T) *Router { diff --git a/internal/web/web.go b/internal/web/web.go index ee28529..ae06a79 100644 --- a/internal/web/web.go +++ b/internal/web/web.go @@ -16,10 +16,10 @@ import ( "time" "unicode" - "git.kmalloc.org/squid/parsimony/assets" - "git.kmalloc.org/squid/parsimony/internal/archive" - "git.kmalloc.org/squid/parsimony/internal/router" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/assets" + "codeberg.org/squidd/parsimony/internal/archive" + "codeberg.org/squidd/parsimony/internal/router" + "codeberg.org/squidd/parsimony/internal/store" ) const pageSize = 25 diff --git a/internal/web/web_test.go b/internal/web/web_test.go index fb13075..f48340e 100644 --- a/internal/web/web_test.go +++ b/internal/web/web_test.go @@ -14,11 +14,11 @@ import ( "testing" "time" - "git.kmalloc.org/squid/parsimony/assets" - "git.kmalloc.org/squid/parsimony/internal/outbound" - "git.kmalloc.org/squid/parsimony/internal/queue" - "git.kmalloc.org/squid/parsimony/internal/router" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/assets" + "codeberg.org/squidd/parsimony/internal/outbound" + "codeberg.org/squidd/parsimony/internal/queue" + "codeberg.org/squidd/parsimony/internal/router" + "codeberg.org/squidd/parsimony/internal/store" ) type fixture struct { diff --git a/scale/scale_test.go b/scale/scale_test.go index 93d7c1e..145b0d0 100644 --- a/scale/scale_test.go +++ b/scale/scale_test.go @@ -22,11 +22,11 @@ import ( "github.com/emersion/go-smtp" - "git.kmalloc.org/squid/parsimony/internal/archive" - "git.kmalloc.org/squid/parsimony/internal/outbound" - "git.kmalloc.org/squid/parsimony/internal/queue" - "git.kmalloc.org/squid/parsimony/internal/router" - "git.kmalloc.org/squid/parsimony/internal/store" + "codeberg.org/squidd/parsimony/internal/archive" + "codeberg.org/squidd/parsimony/internal/outbound" + "codeberg.org/squidd/parsimony/internal/queue" + "codeberg.org/squidd/parsimony/internal/router" + "codeberg.org/squidd/parsimony/internal/store" ) func openStore(t *testing.T) *store.Store {