Skip to content

Commit f56a674

Browse files
authored
fix: restore rueidisaside go.mod and add module validation (#797)
* fix: restore rueidisaside go.mod file Signed-off-by: Ernesto Alejandro Santana Hidalgo <[email protected]> * ci: add validation to prevent accidental module deletion Add a validation step in GitHub Actions that ensures all module directories (om, rueidis* except rueidislock, and mock) have their go.mod files. This prevents accidental deletion of module configurations. --------- Signed-off-by: Ernesto Alejandro Santana Hidalgo <[email protected]>
1 parent 696b564 commit f56a674

File tree

4 files changed

+40
-2
lines changed

4 files changed

+40
-2
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,26 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15+
validate-modules:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Validate Required Modules
20+
run: |
21+
# Find all module directories: rueidis* (except rueidislock), om, and mock
22+
# These directories should contain go.mod files
23+
modules=$(find . -maxdepth 1 -type d \( -name "rueidis*" -o -name "om" -o -name "mock" \) | grep -v "./rueidislock")
24+
25+
# Check each module directory
26+
for module in $modules; do
27+
if [ ! -f "$module/go.mod" ]; then
28+
echo "Error: Module directory '$module' is missing go.mod"
29+
exit 1
30+
fi
31+
done
32+
1533
prepare-matrix:
34+
needs: validate-modules
1635
runs-on: ubuntu-latest
1736
outputs:
1837
matrix: ${{ steps.set-matrix.outputs.matrix }}

rueidisaside/go.mod

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module github.com/redis/rueidis/rueidisaside
2+
3+
go 1.22.0
4+
5+
replace github.com/redis/rueidis => ../
6+
7+
require github.com/redis/rueidis v1.0.55
8+
9+
require golang.org/x/sys v0.30.0 // indirect

rueidisaside/go.sum

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
2+
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
3+
github.com/onsi/gomega v1.36.2 h1:koNYke6TVk6ZmnyHrCXba/T/MoLBXFjeC1PtvYgw0A8=
4+
github.com/onsi/gomega v1.36.2/go.mod h1:DdwyADRjrc825LhMEkD76cHR5+pUnjhUN8GlHlRPHzY=
5+
golang.org/x/net v0.35.0 h1:T5GQRQb2y08kTAByq9L4/bz8cipCdA8FbRTXewonqY8=
6+
golang.org/x/net v0.35.0/go.mod h1:EglIi67kWsHKlRzzVMUD93VMSWGFOMSZgxFjparz1Qk=
7+
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
8+
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
9+
golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM=
10+
golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY=
11+
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
12+
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

rueidislimiter/go.mod

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ module github.com/redis/rueidis/rueidislimiter
22

33
go 1.22.0
44

5-
toolchain go1.24.1
6-
75
replace github.com/redis/rueidis => ../
86

97
replace github.com/redis/rueidis/mock => ../mock

0 commit comments

Comments
 (0)