Skip to content

Commit

Permalink
chore: remove CP_SRC (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
apskhem authored Dec 8, 2023
1 parent 3dd5518 commit 398a697
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
6 changes: 0 additions & 6 deletions earthly/cspell/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,3 @@ CHECK:
COPY $src .

RUN cspell-cli lint . --dot

# A Test and example invocation of the above UDC.
cspell-test:
# Run with `earthly -P +cspell-test`
DO +CHECK --src=$(echo ${PWD}/../../)

14 changes: 0 additions & 14 deletions earthly/rust/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,6 @@ rust-base:
rust-base-all-hosts:
BUILD --platform=linux/amd64 --platform=linux/arm64 +rust-base

CP_SRC:
# Copy the build src using this.
COMMAND
# This can be one directory like `"src/*"` or multiple src separated by `","`:
# eg, "example/Cargo.toml, example/Cargo.lock, example/src"
ARG src=""

# ONLY copy whats needed to build. Not everything.
# Note: rust-toolchain.toml was already copied when rust was setup.
# Minimizing whats copied reduces needless cache misses.
FOR --sep=", " file IN $src
COPY --dir $file .
END

# Common Rust setup.
# Parameters:
# * toolchain : The `rust-toolchain` toml file.
Expand Down

0 comments on commit 398a697

Please sign in to comment.