I have the same problem as described here: Local Checkout fails using CLI, tar terminates with signal 13
I’m running circleci local execute
with a volume pointing to a current directory, which is a git repo (contains .git
directory)
version:
$ circleci version
0.1.7645+5b80b52 (homebrew)
command:
$ circleci local execute -v $(pwd):/root/repo --job build
logs:
$ circleci local execute -v $(pwd):/root/repo --job build
Docker image digest: sha256:de517d0d10219dd242a58b698fff69c923a68813ba7ee02961d4b7795dc6a579
====>> Spin up Environment
Build-agent version 1.0.7998-a7024deb (2019-02-22T13:37:52+0000)
Starting container hotbelgo/docker-elm
using image hotbelgo/docker-elm@sha256:df2b3991ecb86a19f445c715d96ff7057def83b6bce384e8681d8fedceb2b573
Using build environment variables:
BASH_ENV=/tmp/.bash_env-localbuild-1589991970
CI=true
CIRCLECI=true
CIRCLE_BRANCH=circleci
CIRCLE_BUILD_NUM=
CIRCLE_JOB=build
CIRCLE_NODE_INDEX=0
CIRCLE_NODE_TOTAL=1
CIRCLE_REPOSITORY_URL=git@github.com:fluencelabs/p2p-fileshare.git
CIRCLE_SHA1=b05be441b965723f2257ed7f58a3867f16e3384a
CIRCLE_SHELL_ENV=/tmp/.bash_env-localbuild-1589991970
CIRCLE_WORKING_DIRECTORY=~/repo
====>> Checkout code
#!/bin/bash -eo pipefail
mkdir -p /root/repo && cd /tmp/_circleci_local_build_repo && git ls-files -z | xargs -0 tar -c | tar -x -C /root/repo
tar: package-lock.json: file changed as we read it
tar: public/favicon.ico: file changed as we read it
Error: Exited with code 123
Step failed
Error: runner failed
{"Runner":true,"level":"error","msg":"runner failed","task-id":"localbuild-1589991970","time":"2020-05-20T16:26:13Z"}
Task failed
Error: task failed
config:
# run locally:
# $ circleci local execute -v /tmp/circleci:/root/repo --job build
version: 2
jobs:
build:
docker:
# A simple Elm 0.19 docker - https://github.com/simonh1000/docker-elm
- image: hotbelgo/docker-elm
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: npm install create-elm-app
- run: npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run: PATH="$(npm bin):$PATH" elm-app build
workflows:
version: 2
build_and_test:
jobs:
- build