-
Notifications
You must be signed in to change notification settings - Fork 1.9k
clean submodule #358
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
Comments
Found that 'actions/checkout' does not remove all temporary files from previous runs in submodules [1], it runs only 'git clean --xffd' [2]: libgcov profiling error:/home/ubuntu/actions-runner/_work/tarantool/tarantool/src/lib/small/CMakeFiles/small.dir/small/small_class.c.gcda:overwriting an existing profile data with a different timestamp To avoid of it added: git submodules foreach --recursive 'git clean -xffd' to 'actions/environment' which is run after each 'actions/checkout'. Part of #5986 [1]: https://github.com/tarantool/tarantool/runs/2318244478?check_suite_focus=true#step:5:4012 [2]: actions/checkout#358
Found that 'actions/checkout' does not remove all temporary files from previous runs in submodules [1], it runs only 'git clean --xffd' [2]: libgcov profiling error:/home/ubuntu/actions-runner/_work/tarantool/tarantool/src/lib/small/CMakeFiles/small.dir/small/small_class.c.gcda:overwriting an existing profile data with a different timestamp To avoid of it added: git submodules foreach --recursive 'git clean -xffd' to 'actions/environment' which is run after each 'actions/checkout'. Part of #5986 [1]: https://github.com/tarantool/tarantool/runs/2318244478?check_suite_focus=true#step:5:4012 [2]: actions/checkout#358
Found that 'actions/checkout' does not remove all temporary files from previous runs in submodules [1], it runs only 'git clean --xffd' [2]: libgcov profiling error:/home/ubuntu/actions-runner/_work/tarantool/tarantool/src/lib/small/CMakeFiles/small.dir/small/small_class.c.gcda:overwriting an existing profile data with a different timestamp To avoid of it added: git submodules foreach --recursive 'git clean -xffd' to 'actions/environment' which is run after each 'actions/checkout'. Part of #5986 [1]: https://github.com/tarantool/tarantool/runs/2318244478?check_suite_focus=true#step:5:4012 [2]: actions/checkout#358
Found that 'actions/checkout' does not remove all temporary files from previous runs in submodules [1], it runs only 'git clean --xffd' [2]: libgcov profiling error:/home/ubuntu/actions-runner/_work/tarantool/tarantool/src/lib/small/CMakeFiles/small.dir/small/small_class.c.gcda:overwriting an existing profile data with a different timestamp To avoid of it added: git submodules foreach --recursive 'git clean -xffd' to 'actions/environment' which is run after each 'actions/checkout'. Part of #5986 [1]: https://github.com/tarantool/tarantool/runs/2318244478?check_suite_focus=true#step:5:4012 [2]: actions/checkout#358 (cherry picked from commit 57ab8c2)
Found that 'actions/checkout' does not remove all temporary files from previous runs in submodules [1], it runs only 'git clean --xffd' [2]: libgcov profiling error:/home/ubuntu/actions-runner/_work/tarantool/tarantool/src/lib/small/CMakeFiles/small.dir/small/small_class.c.gcda:overwriting an existing profile data with a different timestamp To avoid of it added: git submodules foreach --recursive 'git clean -xffd' to 'actions/environment' which is run after each 'actions/checkout'. Part of #5986 [1]: https://github.com/tarantool/tarantool/runs/2318244478?check_suite_focus=true#step:5:4012 [2]: actions/checkout#358 (cherry picked from commit 57ab8c2)
Found that 'actions/checkout' does not remove all temporary files from previous runs in submodules [1], it runs only 'git clean --xffd' [2]: libgcov profiling error:/home/ubuntu/actions-runner/_work/tarantool/tarantool/src/lib/small/CMakeFiles/small.dir/small/small_class.c.gcda:overwriting an existing profile data with a different timestamp To avoid of it added: git submodules foreach --recursive 'git clean -xffd' to 'actions/environment' which is run after each 'actions/checkout'. Part of #5986 [1]: https://github.com/tarantool/tarantool/runs/2318244478?check_suite_focus=true#step:5:4012 [2]: actions/checkout#358 (cherry picked from commit 57ab8c2)
Hello, Why is this still open? This is a big deal! |
I ran into this issue recently. For me, a file in a submodule got modified by a previous run and then was present in the next run, causing issues. It would be nice if this got merged so I can have reliable CI without adding hacks. This was my workaround by the way:
|
I've also encountered this issue |
@joshmgross @cory-miller you guys seem to be the only ones maintaining this repository even though it is an official Github action. Would you mind looking into this? There is even a PR ready. |
I encountered this issue too |
We have this issue as well, it affects people running self-hosted runners the most because i.e. a simple rename action to add Thanks @OscarVanL for the quick and easy workaround to copy+paste. |
Bump, this is really important. |
The fact that GitHub, a git hosting service doesn't give a darn about their git checkout action working properly never stops being painfully ironic. It's been half a decade since this issue was opened, guess small indie company Microsoft can't spare anyone to look at it. |
current
When
clean: true
, duringCleaning the repository
, it will do:want
When
submodules: true
orsubmodules: recursive
, I want it also do:why
I have a submodule in C++, I want to recompile it without cache everytime.
I was manually run
git reset
before make. But after I setsubmodule.xxx.update = rebase
, it may (or may not) fail duringFetching submodules
step.The clean step must happend before submodule update in my case.
The text was updated successfully, but these errors were encountered: