Skip to content

Commit 0d17fe6

Browse files
authored
Update sql to resolve import conflict (#8)
* add init functions for job and worker * fix commit sql * update cli with formatted examples, add manager commands * add cluster example * add manager server * update go db handlers to new sql functions * fix gosec issues * fix formatting * synchronize with sql * update sql to unified functions * synchronize sql submodule * try adding fetch depth for tagging issue * sync sql * update sql, update dependencies * update dependencies * add replace statement for sql, update imports
1 parent 1223111 commit 0d17fe6

7 files changed

Lines changed: 120 additions & 148 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*
33
!*/
44
!*.*
5+
!Makefile
56

67
# Binaries for programs and plugins
78
*.exe
@@ -29,4 +30,4 @@ go.work.sum
2930
# Python
3031
venv/
3132
!example/cluster/manager/Dockerfile
32-
!example/cluster/worker/Dockerfile
33+
!example/cluster/worker/Dockerfile

database/dbJob.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/lib/pq"
1212
"github.com/siherrmann/queuer/helper"
1313
"github.com/siherrmann/queuer/model"
14-
loadSql "github.com/siherrmann/queuer/sql"
14+
loadSql "github.com/siherrmann/queuerSql"
1515
)
1616

1717
// JobDBHandlerFunctions defines the interface for Job database operations.

database/dbMaster.go

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

1010
"github.com/siherrmann/queuer/helper"
1111
"github.com/siherrmann/queuer/model"
12-
loadSql "github.com/siherrmann/queuer/sql"
12+
loadSql "github.com/siherrmann/queuerSql"
1313
)
1414

1515
// MasterDBHandlerFunctions defines the interface for Master database operations.

database/dbWorker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/lib/pq"
1111
"github.com/siherrmann/queuer/helper"
1212
"github.com/siherrmann/queuer/model"
13-
loadSql "github.com/siherrmann/queuer/sql"
13+
loadSql "github.com/siherrmann/queuerSql"
1414
)
1515

1616
// WorkerDBHandlerFunctions defines the interface for Worker database operations.

go.mod

Lines changed: 36 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
module github.com/siherrmann/queuer
22

3-
go 1.23.5
3+
go 1.25.2
44

55
require (
66
github.com/google/uuid v1.6.0
77
github.com/joho/godotenv v1.5.1
88
github.com/lib/pq v1.10.9
9-
github.com/stretchr/testify v1.10.0
10-
github.com/testcontainers/testcontainers-go v0.37.0
11-
github.com/testcontainers/testcontainers-go/modules/postgres v0.37.0
9+
github.com/stretchr/testify v1.11.1
10+
github.com/testcontainers/testcontainers-go v0.40.0
11+
github.com/testcontainers/testcontainers-go/modules/postgres v0.40.0
1212
)
1313

1414
require (
15+
github.com/clipperhouse/stringish v0.1.1 // indirect
16+
github.com/clipperhouse/uax29/v2 v2.3.0 // indirect
17+
github.com/containerd/errdefs v1.0.0 // indirect
18+
github.com/containerd/errdefs/pkg v0.3.0 // indirect
1519
github.com/inconshreveable/mousetrap v1.1.0 // indirect
1620
github.com/labstack/gommon v0.4.2 // indirect
1721
github.com/mattn/go-colorable v0.1.14 // indirect
1822
github.com/mattn/go-isatty v0.0.20 // indirect
19-
github.com/mattn/go-runewidth v0.0.16 // indirect
20-
github.com/moby/sys/atomicwriter v0.1.0 // indirect
21-
github.com/rivo/uniseg v0.4.7 // indirect
22-
github.com/spf13/pflag v1.0.9 // indirect
23+
github.com/mattn/go-runewidth v0.0.19 // indirect
24+
github.com/spf13/pflag v1.0.10 // indirect
2325
github.com/valyala/bytebufferpool v1.0.0 // indirect
2426
github.com/valyala/fasttemplate v1.2.2 // indirect
25-
golang.org/x/net v0.40.0 // indirect
26-
golang.org/x/time v0.11.0 // indirect
27+
golang.org/x/net v0.47.0 // indirect
28+
golang.org/x/time v0.14.0 // indirect
2729
)
2830

2931
require (
@@ -36,21 +38,20 @@ require (
3638
github.com/cpuguy83/dockercfg v0.3.2 // indirect
3739
github.com/davecgh/go-spew v1.1.1 // indirect
3840
github.com/distribution/reference v0.6.0 // indirect
39-
github.com/docker/docker v28.1.1+incompatible // indirect
40-
github.com/docker/go-connections v0.5.0 // indirect
41+
github.com/docker/docker v28.5.2+incompatible // indirect
42+
github.com/docker/go-connections v0.6.0 // indirect
4143
github.com/docker/go-units v0.5.0 // indirect
42-
github.com/ebitengine/purego v0.8.4 // indirect
44+
github.com/ebitengine/purego v0.9.1 // indirect
4345
github.com/fatih/color v1.18.0
4446
github.com/felixge/httpsnoop v1.0.4 // indirect
45-
github.com/go-logr/logr v1.4.2 // indirect
47+
github.com/go-logr/logr v1.4.3 // indirect
4648
github.com/go-logr/stdr v1.2.2 // indirect
4749
github.com/go-ole/go-ole v1.3.0 // indirect
48-
github.com/gogo/protobuf v1.3.2 // indirect
49-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3 // indirect
50-
github.com/jedib0t/go-pretty/v6 v6.6.8
51-
github.com/klauspost/compress v1.18.0 // indirect
50+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.3 // indirect
51+
github.com/jedib0t/go-pretty/v6 v6.7.5
52+
github.com/klauspost/compress v1.18.1 // indirect
5253
github.com/labstack/echo/v4 v4.13.4
53-
github.com/lufia/plan9stats v0.0.0-20250317134145-8bc96cf8fc35 // indirect
54+
github.com/lufia/plan9stats v0.0.0-20251013123823-9fd1530e3ec3 // indirect
5455
github.com/magiconair/properties v1.8.10 // indirect
5556
github.com/moby/docker-image-spec v1.3.1 // indirect
5657
github.com/moby/go-archive v0.1.0 // indirect
@@ -65,21 +66,24 @@ require (
6566
github.com/pkg/errors v0.9.1 // indirect
6667
github.com/pmezard/go-difflib v1.0.0 // indirect
6768
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
68-
github.com/shirou/gopsutil/v4 v4.25.4 // indirect
69+
github.com/shirou/gopsutil/v4 v4.25.10 // indirect
70+
github.com/siherrmann/queuerSql v0.0.0-20251128145510-d4488b8fe466
6971
github.com/sirupsen/logrus v1.9.3 // indirect
7072
github.com/spf13/cobra v1.10.1
71-
github.com/tklauser/go-sysconf v0.3.15 // indirect
72-
github.com/tklauser/numcpus v0.10.0 // indirect
73+
github.com/tklauser/go-sysconf v0.3.16 // indirect
74+
github.com/tklauser/numcpus v0.11.0 // indirect
7375
github.com/yusufpapurcu/wmi v1.2.4 // indirect
74-
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
75-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect
76-
go.opentelemetry.io/otel v1.36.0 // indirect
77-
go.opentelemetry.io/otel/metric v1.36.0 // indirect
78-
go.opentelemetry.io/otel/trace v1.36.0 // indirect
79-
golang.org/x/crypto v0.38.0 // indirect
80-
golang.org/x/sys v0.33.0 // indirect
81-
golang.org/x/text v0.25.0 // indirect
82-
google.golang.org/grpc v1.72.2 // indirect
83-
google.golang.org/protobuf v1.36.6 // indirect
76+
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
77+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.63.0 // indirect
78+
go.opentelemetry.io/otel v1.38.0 // indirect
79+
go.opentelemetry.io/otel/metric v1.38.0 // indirect
80+
go.opentelemetry.io/otel/trace v1.38.0 // indirect
81+
golang.org/x/crypto v0.45.0 // indirect
82+
golang.org/x/sys v0.38.0 // indirect
83+
golang.org/x/text v0.31.0 // indirect
84+
google.golang.org/grpc v1.77.0 // indirect
85+
google.golang.org/protobuf v1.36.10 // indirect
8486
gopkg.in/yaml.v3 v3.0.1 // indirect
8587
)
88+
89+
replace github.com/siherrmann/queuerSql => ./sql

0 commit comments

Comments
 (0)