File tree 2 files changed +16
-9
lines changed
2 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -28,21 +28,29 @@ BUF_VERSION := 0.43.2
28
28
29
29
.PHONY : install
30
30
install : install.buf # # install buf, protoc, protoc-gen for Go & Dart
31
+ make install.protoc
32
+ make install.go
33
+ make install.dart
34
+
35
+ .PHONY : install.protoc
36
+ install.protoc : # # install Protoc dependencies
31
37
curl -OL $(PROTOC_FULL_URL )
32
38
unzip -o $(PROTOC_FILE ) -d $(BIN_INSTALL_DIR ) /../
33
39
export PATH=" $$ {PATH}:$( BIN_INSTALL_DIR) "
34
40
rm -f protoc-* .zip
35
- make install.go
36
- flutter pub global activate protoc_plugin
37
- make install.dart
38
41
39
42
.PHONY : install.dart
40
43
install.dart : # # install Dart dependencies
44
+ flutter pub global activate protoc_plugin
41
45
cd client && flutter pub get
42
46
43
47
.PHONY : install.go
44
- install.go : # # install go with dependencies
45
- cd server && go mod download && grep _ ./cmd/tools/tools.go | cut -d' ' -f2 | sed ' s/\r//' | xargs go install && go mod tidy
48
+ install.go : install.go.notidy # # install go with dependencies
49
+ cd server && go mod tidy
50
+
51
+ .PHONY : install.go.notidy
52
+ install.go.notidy : # # install go with dependencies but no tidy
53
+ cd server && go mod download && grep _ ./cmd/tools/tools.go | cut -d' ' -f2 | sed ' s/\r//' | xargs go install
46
54
cd dbctl && go mod download
47
55
48
56
.PHONY : install.buf
Original file line number Diff line number Diff line change @@ -13,12 +13,11 @@ COPY --from=golang:1.16 /usr/local/go/ /usr/local/go/
13
13
# Install dependencies
14
14
WORKDIR /workspace
15
15
COPY ./client/pubspec.lock ./client/pubspec.yaml ./client/
16
- COPY ./server ./server/
17
- COPY ./dbctl ./dbctl/
16
+ COPY ./server/go.* ./server/
17
+ COPY ./dbctl/go.* ./dbctl/
18
18
COPY Makefile .
19
19
20
- RUN make install
21
- RUN cd dbctl && go mod download
20
+ RUN make install.buf install.protoc install.go.notidy install.dart
22
21
RUN rm -rf client server Makefile dbctl
23
22
24
23
# Install golangci-lint.
You can’t perform that action at this time.
0 commit comments