Skip to content

Commit

Permalink
enforce buf v1.25.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dmah42 committed Aug 8, 2023
1 parent 082339c commit e774d94
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/001-tester-ubuntu-make-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
- uses: bufbuild/buf-setup-action@v1
with:
github_token: ${{ github.token }}
version: 1.25.0
- uses: actions/cache@v3
with:
path: |
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,10 @@ GEN_RS += $(patsubst api/v0/%,$(GEN_TONIC_RS_PATTERN),$(PROTO_DIRS))

GEN_TS = $(patsubst api/v0/%.proto,$(GEN_TS_PATTERN),$(PROTOS))

BUF_VERSION = $(shell buf --version)

$(GEN_TS_PATTERN) $(GEN_RS_PATTERN) $(GEN_SERDE_RS_PATTERN) $(GEN_TONIC_RS_PATTERN): $(PROTOS)
@buf --version >/dev/null 2>&1 || (echo "Warning: buf is not installed! Please install the 'buf' command line tool: https://docs.buf.build/installation"; exit 1)
@if [[ "${BUF_VERSION}" != "1.25.0" ]]; then echo "Warning: buf 1.25.0 is not installed! Please install v1.25.0 of the 'buf' command line tool: https://docs.buf.build/installation"; exit 1; fi;
buf lint api
buf generate -v api

Expand Down
4 changes: 2 additions & 2 deletions images/Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ LABEL org.opencontainers.image.source https://github.com/aurae-runtime/aurae

## Define ARGs
ARG CACHE_VERSION=v0
ARG BUF_VERSION=1.11.0
ARG BUF_VERSION=1.25.0
ARG PROTOC_VERSION=1.5.1
ARG GH_CLI_VERSION=2.21.2

Expand Down Expand Up @@ -68,7 +68,7 @@ RUN apt-get update && \
git \
make \
musl-tools \
protobuf-compiler
protobuf-compiler
RUN rm -rf /var/lib/apt/lists/*

## Setup Rust
Expand Down
2 changes: 1 addition & 1 deletion images/Dockerfile.nested
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ LABEL org.opencontainers.image.source https://github.com/aurae-runtime/aurae

## Define ARGs
ARG CACHE_VERSION=v0
ARG BUF_VERSION=1.11.0
ARG BUF_VERSION=1.25.0
ARG VALE_VERSION=2.21.3
ARG PROTOC_VERSION=1.5.1

Expand Down
4 changes: 2 additions & 2 deletions images/Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ LABEL org.opencontainers.image.source https://github.com/aurae-runtime/aurae

## Define ARGs
ARG CACHE_VERSION=v0
ARG BUF_VERSION=1.11.0
ARG BUF_VERSION=1.25.0
ARG VALE_VERSION=2.21.3
ARG PROTOC_VERSION=1.5.1

Expand Down Expand Up @@ -88,4 +88,4 @@ RUN curl -sSl -J -L "https://github.com/errata-ai/vale/releases/download/v${VALE
RUN cargo install cargo-udeps
RUN cargo install cargo-deny

WORKDIR /aurae
WORKDIR /aurae

0 comments on commit e774d94

Please sign in to comment.