-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(Makefile)_: generate, clean-generated-files
- Loading branch information
1 parent
490a208
commit 1e232c1
Showing
7 changed files
with
105 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ FROM golang:1.21-alpine3.18 as builder | |
ENV CC=clang | ||
ENV CXX=clang++ | ||
|
||
RUN apk add --no-cache make llvm clang musl-dev linux-headers | ||
RUN apk add --no-cache git make llvm clang musl-dev linux-headers protobuf-dev~3.21 | ||
|
||
ARG build_tags | ||
ARG build_flags | ||
|
@@ -14,6 +14,10 @@ ARG build_target=statusgo | |
RUN mkdir -p /go/src/github.com/status-im/status-go | ||
WORKDIR /go/src/github.com/status-im/status-go | ||
ADD . . | ||
|
||
RUN go install go.uber.org/mock/[email protected] | ||
RUN go install github.com/kevinburke/go-bindata/v4/[email protected] | ||
RUN go install google.golang.org/protobuf/cmd/[email protected] | ||
RUN make $build_target BUILD_TAGS="$build_tags" BUILD_FLAGS="$build_flags" SHELL="/bin/sh" | ||
|
||
# Copy the binary to the second image | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
|
||
GIT_ROOT=$(cd "${BASH_SOURCE%/*}" && git rev-parse --show-toplevel) | ||
source "${GIT_ROOT}/_assets/scripts/colors.sh" | ||
|
||
echo -e "${GRN}Removing mockgen files from ./mock directories${RST}" # excluding ./vendor and ./contracts directories | ||
find . \ | ||
\( \ | ||
-type d -name "mock" \ | ||
-and -not -path "./vendor/*" \ | ||
-and -not -path "./contracts/*" \ | ||
\) \ | ||
-exec rm -rf {} + | ||
|
||
echo -e "${GRN}Removing mock.go files${RST}" # In theory this is only ./transactions/fake/mock.go | ||
find . \ | ||
-name "mock.go" \ | ||
-and -not -path "./vendor/*" \ | ||
-exec rm -f {} + | ||
|
||
echo -e "${GRN}Removing protoc and go-bindata files${RST}" | ||
find . \ | ||
\( \ | ||
-name '*.pb.go' \ | ||
-or -name 'bindata.go' \ | ||
-or -name 'migrations.go' \ | ||
-or -name 'messenger_handlers.go' \ | ||
\) \ | ||
-and -not -path './vendor/*' \ | ||
-exec rm -f {} + |