Skip to content

Commit a874ef5

Browse files
committed
chore: remove submodules from release images and workflows
1 parent 5ce19f5 commit a874ef5

7 files changed

Lines changed: 4 additions & 141 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,8 @@ jobs:
2020
with:
2121
go-version: "^1.26.0"
2222

23-
- name: Initialize submodules
24-
run: |
25-
git submodule init
26-
git submodule update
27-
28-
- name: Apply patches
29-
run: |
30-
git apply --directory paerser/ patches/nested_maps.diff
23+
- name: Go dependencies
24+
run: go mod download
3125

3226
- name: Install frontend dependencies
3327
run: |

.github/workflows/nightly.yml

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,6 @@ jobs:
6363
with:
6464
go-version: "^1.26.0"
6565

66-
- name: Initialize submodules
67-
run: |
68-
git submodule init
69-
git submodule update
70-
71-
- name: Apply patches
72-
run: |
73-
git apply --directory paerser/ patches/nested_maps.diff
74-
7566
- name: Install frontend dependencies
7667
run: |
7768
cd frontend
@@ -118,15 +109,6 @@ jobs:
118109
with:
119110
go-version: "^1.26.0"
120111

121-
- name: Initialize submodules
122-
run: |
123-
git submodule init
124-
git submodule update
125-
126-
- name: Apply patches
127-
run: |
128-
git apply --directory paerser/ patches/nested_maps.diff
129-
130112
- name: Install frontend dependencies
131113
run: |
132114
cd frontend
@@ -165,15 +147,6 @@ jobs:
165147
with:
166148
ref: nightly
167149

168-
- name: Initialize submodules
169-
run: |
170-
git submodule init
171-
git submodule update
172-
173-
- name: Apply patches
174-
run: |
175-
git apply --directory paerser/ patches/nested_maps.diff
176-
177150
- name: Docker meta
178151
id: meta
179152
uses: docker/metadata-action@v6
@@ -232,15 +205,6 @@ jobs:
232205
with:
233206
ref: nightly
234207

235-
- name: Initialize submodules
236-
run: |
237-
git submodule init
238-
git submodule update
239-
240-
- name: Apply patches
241-
run: |
242-
git apply --directory paerser/ patches/nested_maps.diff
243-
244208
- name: Docker meta
245209
id: meta
246210
uses: docker/metadata-action@v6
@@ -299,15 +263,6 @@ jobs:
299263
with:
300264
ref: nightly
301265

302-
- name: Initialize submodules
303-
run: |
304-
git submodule init
305-
git submodule update
306-
307-
- name: Apply patches
308-
run: |
309-
git apply --directory paerser/ patches/nested_maps.diff
310-
311266
- name: Docker meta
312267
id: meta
313268
uses: docker/metadata-action@v6
@@ -366,15 +321,6 @@ jobs:
366321
with:
367322
ref: nightly
368323

369-
- name: Initialize submodules
370-
run: |
371-
git submodule init
372-
git submodule update
373-
374-
- name: Apply patches
375-
run: |
376-
git apply --directory paerser/ patches/nested_maps.diff
377-
378324
- name: Docker meta
379325
id: meta
380326
uses: docker/metadata-action@v6

.github/workflows/release.yml

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,6 @@ jobs:
3939
with:
4040
go-version: "^1.26.0"
4141

42-
- name: Initialize submodules
43-
run: |
44-
git submodule init
45-
git submodule update
46-
47-
- name: Apply patches
48-
run: |
49-
git apply --directory paerser/ patches/nested_maps.diff
50-
5142
- name: Install frontend dependencies
5243
run: |
5344
cd frontend
@@ -91,15 +82,6 @@ jobs:
9182
with:
9283
go-version: "^1.26.0"
9384

94-
- name: Initialize submodules
95-
run: |
96-
git submodule init
97-
git submodule update
98-
99-
- name: Apply patches
100-
run: |
101-
git apply --directory paerser/ patches/nested_maps.diff
102-
10385
- name: Install frontend dependencies
10486
run: |
10587
cd frontend
@@ -135,15 +117,6 @@ jobs:
135117
- name: Checkout
136118
uses: actions/checkout@v6
137119

138-
- name: Initialize submodules
139-
run: |
140-
git submodule init
141-
git submodule update
142-
143-
- name: Apply patches
144-
run: |
145-
git apply --directory paerser/ patches/nested_maps.diff
146-
147120
- name: Docker meta
148121
id: meta
149122
uses: docker/metadata-action@v6
@@ -199,15 +172,6 @@ jobs:
199172
- name: Checkout
200173
uses: actions/checkout@v6
201174

202-
- name: Initialize submodules
203-
run: |
204-
git submodule init
205-
git submodule update
206-
207-
- name: Apply patches
208-
run: |
209-
git apply --directory paerser/ patches/nested_maps.diff
210-
211175
- name: Docker meta
212176
id: meta
213177
uses: docker/metadata-action@v6
@@ -263,15 +227,6 @@ jobs:
263227
- name: Checkout
264228
uses: actions/checkout@v6
265229

266-
- name: Initialize submodules
267-
run: |
268-
git submodule init
269-
git submodule update
270-
271-
- name: Apply patches
272-
run: |
273-
git apply --directory paerser/ patches/nested_maps.diff
274-
275230
- name: Docker meta
276231
id: meta
277232
uses: docker/metadata-action@v6
@@ -327,15 +282,6 @@ jobs:
327282
- name: Checkout
328283
uses: actions/checkout@v6
329284

330-
- name: Initialize submodules
331-
run: |
332-
git submodule init
333-
git submodule update
334-
335-
- name: Apply patches
336-
run: |
337-
git apply --directory paerser/ patches/nested_maps.diff
338-
339285
- name: Docker meta
340286
id: meta
341287
uses: docker/metadata-action@v6

CONTRIBUTING.md

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,9 @@ git clone https://github.com/steveiliop56/tinyauth
1919
cd tinyauth
2020
```
2121

22-
## Initialize Submodules
22+
## Installing Dependencies
2323

24-
The project uses Git submodules for some dependencies, so you need to initialize them with:
25-
26-
```sh
27-
git submodule init
28-
git submodule update
29-
```
30-
31-
## Apply patches
32-
33-
Some of the dependencies must be patched in order to work correctly with the project, you can apply the patches by running:
34-
35-
```sh
36-
git apply --directory paerser/ patches/nested_maps.diff
37-
```
38-
39-
## Installing Requirements
40-
41-
While development occurs within Docker, installing the requirements locally is recommended to avoid import errors. Install the Go dependencies:
24+
While development occurs within Docker, installing the dependencies locally is recommended to avoid import errors. Install the Go dependencies:
4225

4326
```sh
4427
go mod tidy

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ ARG BUILD_TIMESTAMP
2828

2929
WORKDIR /tinyauth
3030

31-
COPY ./paerser ./paerser
32-
3331
COPY go.mod ./
3432
COPY go.sum ./
3533

Dockerfile.dev

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ FROM golang:1.26-alpine3.23
22

33
WORKDIR /tinyauth
44

5-
COPY ./paerser ./paerser
6-
75
COPY go.mod ./
86
COPY go.sum ./
97

Dockerfile.distroless

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ ARG BUILD_TIMESTAMP
2828

2929
WORKDIR /tinyauth
3030

31-
COPY ./paerser ./paerser
32-
3331
COPY go.mod ./
3432
COPY go.sum ./
3533

0 commit comments

Comments
 (0)