Skip to content

Commit

Permalink
switch to rsync for cross platform compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ruflin committed Mar 26, 2020
1 parent 9283775 commit 3141450
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM golang:${GO_VERSION:-1.13.4}
RUN \
apt-get update \
&& apt-get install -y --no-install-recommends \
zip \
zip rsync \
&& rm -rf /var/lib/apt/lists/*

COPY ./ /go/src/github.com/elastic/package-registry
Expand Down
2 changes: 1 addition & 1 deletion dev/generator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func Build(sourceDir, publicDir string) error {
func CopyPackage(src, dst string) error {
log.Println(">> Copy package: " + src)
os.MkdirAll(dst, 0755)
err := sh.RunV("cp", "-a", src, dst)
err := sh.RunV("rsync", "-a", src, dst)
if err != nil {
return err
}
Expand Down

0 comments on commit 3141450

Please sign in to comment.