Skip to content

Commit 4ecc554

Browse files
committed
fix(deps): add capnp std and mockery
Change-Id: Ic3b3119ddb335915e2c4dfbfe7babe9b073a347c
1 parent d074e63 commit 4ecc554

4 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/scripts/qemu-2-run-in-vm.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ function prapre_test_env() {
120120
esac
121121

122122
which mockery || go install github.com/vektra/mockery/v2@latest
123+
cd /mnt/host && go mod download capnproto.org/go/capnp/v3
123124
which capnpc-go || go install capnproto.org/go/capnp/v3/capnpc-go@v3.1.0-alpha.1
124125
git config --global --add safe.directory /mnt/host
125126
}

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ COPY . .
1515
RUN set -x; \
1616
apt-get update && apt-get install -y --no-install-recommends \
1717
make clang libbpf-dev bpftool curl git binutils-gold musl-tools capnproto-dev &&\
18+
cd ${BUILD_PATH} && go mod download capnproto.org/go/capnp/v3 &&\
1819
make BUILD_MODE=${BUILD_MODE} &&\
1920
mkdir -p ${RUN_PATH} &&\
2021
cp -rf ${BUILD_PATH}/_output/* ${RUN_PATH}/ &&\

Dockerfile.devel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ ENV PATH="${GOPATH}/bin:${GOROOT}/bin:/usr/lib/llvm15/bin:${PATH}"
1818
RUN go install mvdan.cc/gofumpt@v0.8.0 && \
1919
go install golang.org/x/tools/cmd/goimports@v0.36.0 && \
2020
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.2 && \
21+
go install github.com/vektra/mockery/v2@v2.53.6 && \
2122
go install capnproto.org/go/capnp/v3/capnpc-go@v3.1.0-alpha.1

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ sync:
7272
@cp $(BPF_DIR)/*.o $(APP_CMD_OUTPUT)/bpf/
7373
@cp *.conf $(APP_CMD_OUTPUT)/conf/
7474

75-
build: $(APP_CMD_BIN_TARGETS)
75+
build: gen-build $(APP_CMD_BIN_TARGETS)
7676
$(APP_CMD_BIN_TARGETS): $(GO_SRCS)
7777
$(APP_CMD_OUTPUT)/bin/%:
7878
@mkdir -p $(APP_CMD_OUTPUT)/bin

0 commit comments

Comments
 (0)