Skip to content

Commit 0be3374

Browse files
committed
fix(Earthfile): update artifact saving logic
Change artifact saving in 'build', 'lint', and 'generate' stages. Separate saving of go.* files in 'build' stage. Ensure all files are saved locally in 'lint' and 'generate' stages.
1 parent 533b023 commit 0be3374

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Earthfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ tidy:
1414
WORKDIR /src
1515
COPY --dir (+sources/src/*) /src
1616
DO --pass-args core+GO_TIDY
17-
SAVE ARTIFACT /src AS LOCAL ./
17+
SAVE ARTIFACT /src
18+
SAVE ARTIFACT go.* AS LOCAL ./
1819

1920
lint:
2021
FROM core+builder-image
2122
WORKDIR /src
2223
COPY --dir (+tidy/src/*) /src
2324
DO --pass-args core+GO_LINT
24-
SAVE ARTIFACT /src AS LOCAL ./
25+
SAVE ARTIFACT * AS LOCAL ./
2526

2627
tests:
2728
FROM core+builder-image
@@ -44,4 +45,4 @@ generate:
4445
WORKDIR /src
4546
COPY --dir (+tidy/src/*) /src
4647
DO --pass-args core+GO_GENERATE
47-
SAVE ARTIFACT /src AS LOCAL ./
48+
SAVE ARTIFACT * AS LOCAL ./

0 commit comments

Comments
 (0)