-
Notifications
You must be signed in to change notification settings - Fork 993
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
[bug] Permision denied on conan cache restore #15959
Comments
Hi @obajj-dlb Thanks for your report. I see that you are packaging the whole git repo (the Git repos internal |
Hi @memsharded We're currently using git as version control system for that package indeed. We checked an older issue (#6605) and saw that this was similarly discussed, but the proposal was dismissed. Do you know if there is any way to exclude the .git folder from getting packaged, for instance in the recipe configuration? That way we could create the package and we wouldn't break the repository folder. |
That ticket referred to the Modern Conan has full control, not only with the |
Hi @obajj-dlb Did you manage to solve the issue, by not copying/exporting the full |
Hi @memsharded, We haven't tested it yet, but it seems like you're right. Close it if you want and I can reopen it if needed. Is that okay? Thank you! |
Sounds good, closing, you can always re-open or create a new ticket, thanks! |
Hi @memsharded,
def source(self):
git = Git(self)
git.fetch_commit(**self.conan_data["sources"][self.version]) is anything wrong with that? I'm using Conan 2.5.0. EDIT: I see that I can remove source and build folders using |
The source directory can be cleaned with I think the |
Describe the bug
OS: Sonoma 14.4 (23E214) and lower versions. It is also failing on Windows.
Conan version: 2.0.17
Conan profiles: armv8 and x86_64
When restoring two packages to the conan cache we get the following error on the second restore:
ERROR: [Errno 13] Permission denied: '/Users/obajj/.conan2/p/pkg6360ad46104cc/s/.git/objects/pack/pack-78b4c8af2bb8d54a6e0b73a9f60ccda002c62d51.idx'
This doesn't happen always.
How to reproduce it
In armv8 machine:
conan cache save pkg:* --file=macos-arch_armv8-clang-cppstd_17.tgz
In x86_64 machine:
conan cache save pkg:* --file=macos-arch_x86_64-clang-cppstd_17.tgz
In (another) armv8 machine:
conan cache restore macos-arch_armv8-clang-cppstd_17.tgz
conan cache restore macos-arch_x86_64-clang-cppstd_17.tgz
output:
ERROR: [Errno 13] Permission denied: '/Users/obajj/.conan2/p/pkg6360ad46104cc/s/.git/objects/pack/pack-78b4c8af2bb8d54a6e0b73a9f60ccda002c62d51.idx'
The text was updated successfully, but these errors were encountered: