Skip to content

Commit eaecb60

Browse files
committed
Simplify module name
1 parent 2f8cfa0 commit eaecb60

53 files changed

Lines changed: 100 additions & 100 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
/node_modules
55
/internal/ui/packagepage/icons/*
66
!/internal/ui/packagepage/icons/.gitkeep
7-
/pkgstats.archlinux.de
87
*_templ.go
98
/tmp/*
109
!/tmp/.gitkeep

.golangci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ formatters:
2626
settings:
2727
gofumpt:
2828
extra-rules: true
29+
module-path: pkgstatsd
2930

3031
linters-settings:
3132
gocyclo:

cmd/anomaly-detection/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"strings"
2323
"time"
2424

25-
"pkgstats.archlinux.de/internal/database"
25+
"pkgstatsd/internal/database"
2626
)
2727

2828
const (

cmd/anomaly-detection/main_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"testing"
66

7-
"pkgstats.archlinux.de/internal/database"
7+
"pkgstatsd/internal/database"
88
)
99

1010
func TestOffsetMonth(t *testing.T) {
@@ -74,15 +74,15 @@ func TestAnomalyDetection_Integration(t *testing.T) {
7474

7575
// Insert data for growth anomalies
7676
// Mirror baseline: 3 months of 100
77-
_, _ = db.Exec(`INSERT INTO mirror (url, month, count) VALUES
77+
_, _ = db.Exec(`INSERT INTO mirror (url, month, count) VALUES
7878
('http://m1', 202410, 100), ('http://m1', 202411, 100), ('http://m1', 202412, 100),
7979
('http://m1', 202501, 1000)`) // 900% growth
8080

8181
// Package spikes
8282
_, _ = db.Exec(`INSERT INTO package (name, month, count) VALUES ('new-spike', 202501, 2000)`)
8383

8484
// Base package correlation
85-
_, _ = db.Exec(`INSERT INTO package (name, month, count) VALUES
85+
_, _ = db.Exec(`INSERT INTO package (name, month, count) VALUES
8686
('pkgstats', 202501, 5000), ('pacman', 202501, 5000), ('linux', 202501, 5000)`)
8787

8888
target := 202501

cmd/fixtures/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"os"
1616
"time"
1717

18-
"pkgstats.archlinux.de/internal/database"
18+
"pkgstatsd/internal/database"
1919
)
2020

2121
const (

cmd/migrate-data/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
_ "github.com/go-sql-driver/mysql"
1818
_ "modernc.org/sqlite"
1919

20-
"pkgstats.archlinux.de/internal/database"
20+
"pkgstatsd/internal/database"
2121
)
2222

2323
func main() {

cmd/migrate-data/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
_ "modernc.org/sqlite"
1313

14-
"pkgstats.archlinux.de/internal/database"
14+
"pkgstatsd/internal/database"
1515
)
1616

1717
type tableSpec struct {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module pkgstats.archlinux.de
1+
module pkgstatsd
22

33
go 1.26.0
44

internal/countries/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"database/sql"
66
"net/http"
77

8-
"pkgstats.archlinux.de/internal/popularity"
8+
"pkgstatsd/internal/popularity"
99
)
1010

1111
// SQLiteRepository wraps the generic popularity repository.

internal/countries/handler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"net/http/httptest"
1010
"testing"
1111

12-
"pkgstats.archlinux.de/internal/web"
12+
"pkgstatsd/internal/web"
1313
)
1414

1515
type mockQuerier struct {

0 commit comments

Comments
 (0)