Skip to content
This repository was archived by the owner on Mar 23, 2023. It is now read-only.

Commit ebcf519

Browse files
committed
Make contracts dir before cargo new
The updated version of cargo in the nightly toolchain throws an error on `cargo new --bin contracts/[CONTRACT]` if the contracts directory doesn't exist. Signed-off-by: Darian Plumb <[email protected]>
1 parent 2c56a0d commit ebcf519

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

contracts/pike/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ RUN curl -OLsS https://github.com/google/protobuf/releases/download/v3.5.1/proto
5050

5151
COPY ./sdk /sdk
5252

53-
RUN USER=root cargo new --bin contracts/pike
53+
RUN mkdir contracts \
54+
&& USER=root cargo new --bin contracts/pike
5455
WORKDIR /contracts/pike
5556

5657
# Build TP with dummy source in order to cache dependencies in Docker image.

contracts/schema/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ RUN curl -OLsS https://github.com/google/protobuf/releases/download/v3.5.1/proto
5656

5757
COPY ./sdk /sdk
5858

59-
RUN USER=root cargo new --bin contracts/schema
59+
RUN mkdir contracts \
60+
&& USER=root cargo new --bin contracts/schema
6061
WORKDIR /contracts/schema
6162

6263
# Build TP with dummy source in order to cache dependencies in Docker image.

contracts/track_and_trace/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ RUN curl -OLsS https://github.com/google/protobuf/releases/download/v3.5.1/proto
5656

5757
COPY ./sdk /sdk
5858

59-
RUN USER=root cargo new --bin contracts/track_and_trace
59+
RUN mkdir contracts \
60+
&& USER=root cargo new --bin contracts/track_and_trace
6061
WORKDIR /contracts/track_and_trace
6162

6263
# Build TP with dummy source in order to cache dependencies in Docker image.

docker/tests

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ RUN rustup update \
5050

5151
COPY ./sdk /sdk
5252

53-
RUN USER=root cargo new --bin contracts/schema
53+
RUN mkdir contracts \
54+
&& USER=root cargo new --bin contracts/schema
5455
WORKDIR /contracts/schema
5556

5657
#Build modules with dummy source in order to cache dependencies in Docker image.

0 commit comments

Comments
 (0)