Skip to content

Commit

Permalink
Prefer BUILD over FROM to include matrix builds
Browse files Browse the repository at this point in the history
`FROM` alone is a single dependency for another target. `BUILD` is quite
similar but includes matrix patterns: compare `handleFrom` with
`handleBuild`.

See https://github.com/earthly/earthly/blob/main/inputgraph/loader.go
  • Loading branch information
binkley committed May 15, 2024
1 parent 6b4d157 commit 81bfe41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ run-with-maven:
RUN ./run-with-maven.sh

build:
FROM +build-with-gradle
FROM +build-with-maven
BUILD +build-with-gradle
BUILD +build-with-maven

run:
FROM +run-with-gradle
FROM +run-with-maven
BUILD +run-with-gradle
BUILD +run-with-maven

0 comments on commit 81bfe41

Please sign in to comment.