Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
build: SAVE ARTIFACT output location fix (#107)
Browse files Browse the repository at this point in the history
The destination directory's path if it end with '/' copys to different locations
if the destination exists or not locally, similar to 'cp'.

Setting the destination as './' keeps the behaviour consistent if the
destination exists or not locally and lets us not repeat the name.
  • Loading branch information
DeveloperC286 authored Apr 24, 2024
1 parent a28517c commit 94990a3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,20 +96,20 @@ fix-go-formatting:
DO +INSTALL_DEPENDENCIES
DO +COPY_SOURCECODE
RUN ./ci/fix-go-formatting.sh
SAVE ARTIFACT "src/" AS LOCAL "src/"
SAVE ARTIFACT "src/" AS LOCAL "./"


fix-shell-formatting:
FROM +sh-formatting-base
RUN ./ci/fix-shell-formatting.sh
SAVE ARTIFACT "ci/" AS LOCAL "ci/"
SAVE ARTIFACT "ci/" AS LOCAL "./"


fix-yaml-formatting:
FROM +yaml-formatting-base
RUN ./ci/fix-yaml-formatting.sh
SAVE ARTIFACT ".github/" AS LOCAL ".github/"
SAVE ARTIFACT ".goreleaser.yaml" AS LOCAL ".goreleaser.yaml"
SAVE ARTIFACT ".github/" AS LOCAL "./"
SAVE ARTIFACT ".goreleaser.yaml" AS LOCAL "./"


fix-formatting:
Expand Down Expand Up @@ -165,8 +165,8 @@ fix-modules:
DO +INSTALL_DEPENDENCIES
DO +COPY_SOURCECODE
RUN ./ci/fix-modules.sh
SAVE ARTIFACT "go.mod" AS LOCAL "go.mod"
SAVE ARTIFACT "go.sum" AS LOCAL "go.sum"
SAVE ARTIFACT "go.mod" AS LOCAL "./"
SAVE ARTIFACT "go.sum" AS LOCAL "./"


INSTALL_GORELEASER:
Expand All @@ -183,8 +183,8 @@ compile:
DO +INSTALL_DEPENDENCIES
DO +COPY_SOURCECODE
RUN ./ci/compile.sh
SAVE ARTIFACT "dist/" AS LOCAL "dist/"
SAVE ARTIFACT "go.sum" AS LOCAL "go.sum"
SAVE ARTIFACT "dist/" AS LOCAL "./"
SAVE ARTIFACT "go.sum" AS LOCAL "./"


unit-test:
Expand Down

0 comments on commit 94990a3

Please sign in to comment.