Skip to content

Commit 0e5f743

Browse files
authored
fix(dockerfile): using wildcard version for protobuf-compiler (#264)
1 parent 4e5939b commit 0e5f743

6 files changed

Lines changed: 26 additions & 11 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,14 @@ jobs:
3636
- name: Cache cargo registry and target
3737
uses: Swatinem/rust-cache@v2
3838

39+
- name: Update apt package list
40+
run: sudo apt-get update
41+
3942
- name: Install `protobuf`
4043
uses: awalsh128/cache-apt-pkgs-action@v1.6.0
4144
with:
42-
packages: protobuf-compiler
43-
version: 3.21.12-8.2ubuntu0.2
45+
packages: protobuf-compiler=3.21.12*
46+
version: 3.21.12
4447

4548
- name: Install `oas3-gen`
4649
run: cargo install oas3-gen@0.24.0

.github/workflows/docs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,14 @@ jobs:
3636
- name: Cache cargo registry and target
3737
uses: Swatinem/rust-cache@v2
3838

39+
- name: Update apt package list
40+
run: sudo apt-get update
41+
3942
- name: Install `protobuf`
4043
uses: awalsh128/cache-apt-pkgs-action@v1.6.0
4144
with:
42-
packages: protobuf-compiler
43-
version: 3.21.12-8.2ubuntu0.2
45+
packages: protobuf-compiler=3.21.12*
46+
version: 3.21.12
4447

4548
- name: Install `oas3-gen`
4649
run: cargo install oas3-gen@0.24.0

.github/workflows/linter.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,14 @@ jobs:
4343
- name: Cache cargo registry and target
4444
uses: Swatinem/rust-cache@v2
4545

46+
- name: Update apt package list
47+
run: sudo apt-get update
48+
4649
- name: Install `protobuf`
4750
uses: awalsh128/cache-apt-pkgs-action@v1.6.0
4851
with:
49-
packages: protobuf-compiler
50-
version: 3.21.12-8.2ubuntu0.2
52+
packages: protobuf-compiler=3.21.12*
53+
version: 3.21.12
5154

5255
- name: Install `oas3-gen`
5356
run: cargo install oas3-gen@0.24.0

.github/workflows/semver.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,14 @@ jobs:
3434
- name: Cache cargo registry and target
3535
uses: Swatinem/rust-cache@v2
3636

37+
- name: Update apt package list
38+
run: sudo apt-get update
39+
3740
- name: Install `protobuf`
3841
uses: awalsh128/cache-apt-pkgs-action@v1.6.0
3942
with:
40-
packages: protobuf-compiler
41-
version: 3.21.12-8.2ubuntu0.2
43+
packages: protobuf-compiler=3.21.12*
44+
version: 3.21.12
4245

4346
- name: Install `oas3-gen`
4447
run: cargo install oas3-gen@0.24.0

.github/workflows/test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,14 @@ jobs:
5757
- name: Cache cargo registry and target
5858
uses: Swatinem/rust-cache@v2
5959

60+
- name: Update apt package list
61+
run: sudo apt-get update
62+
6063
- name: Install `protobuf`
6164
uses: awalsh128/cache-apt-pkgs-action@v1.6.0
6265
with:
63-
packages: protobuf-compiler
64-
version: 3.21.12-8.2ubuntu0.2
66+
packages: protobuf-compiler=3.21.12*
67+
version: 3.21.12
6568

6669
- name: Install `oas3-gen`
6770
run: cargo install oas3-gen@0.24.0

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ENV SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH}
1111
RUN apt-get update && \
1212
apt-get install -y curl build-essential pkg-config \
1313
openssl libssl-dev \
14-
protobuf-compiler=3.21.12-8.2ubuntu0.2
14+
protobuf-compiler=3.21.12*
1515

1616
# Install Rust using rustup, the official installer
1717
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.89.0

0 commit comments

Comments
 (0)