-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Checkout step fails on macOS #281
Comments
This is also broken on Linux, even on the latest CLI version ( I've had a previous issue with checkout and the problem was actually in CircleCI's build-agent image, which is in a private repo. The workaround from my previous issue seems to work for this issue as well. |
Thanks for the tip @LachlanStuart! That got me past the checkout step and on to my next hurdle. |
@jagthedrummer - thank's for submitting this issue!
|
I'm seeing this issue exactly, but digging in seemed to be an issue with the maximum byte length of I maxed it out the
|
@LastZactionHero you are right. I've got the same issue for large project using local executor on linux.
https://linux.die.net/man/1/xargs The simplest workaround is: checkout: &checkout
checkout
localCheckout: &localCheckout
run: |-
PROJECT_PATH=$(cd ${CIRCLE_WORKING_DIRECTORY}; pwd)
mkdir -p ${PROJECT_PATH}
cd /tmp/_circleci_local_build_repo
git ls-files -z | xargs -0 -s 2090860 tar -c | tar -x -C ${PROJECT_PATH}
cp -a /tmp/_circleci_local_build_repo/.git ${PROJECT_PATH}
# ...
jobs:
build:
steps:
- *checkout
local:
steps:
- *localCheckout but would be great to have possibility to customize the command. |
Make sure that you have this set:
|
It's running!
|
Update: This actually checks out the remote code, Had the same issue. Here is @suecharo's fix adjusted a bit so that it only applies to local builds:
|
See #330 (comment) for a working fix, at least for the |
#330 is a duplicate of this issue as far as I can tell. |
Logged as CIRCLE-25051. |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Watching the
/tmp
dir it doesn't look like/tmp/_circleci_local_build_repo
is ever created or populated with anything.What is the expected behavior?
Checking out the code should work.
Which version of the CLI and OS are you using? Did this work in previous versions?
The text was updated successfully, but these errors were encountered: