Skip to content
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

Fix pod install issue when git's core.fsmonitor feature is enabled #12158

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions CHANGELOG.md
Expand Up @@ -14,8 +14,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`

##### Bug Fixes

* None.

* Fix pod install issue when git's `core.fsmonitor` feature is enabled
[Justin Martin](https://github.com/justinseanmartin)
[#11640](https://github.com/CocoaPods/CocoaPods/issues/11640)

## 1.14.3 (2023-11-19)

Expand Down
2 changes: 1 addition & 1 deletion lib/cocoapods/downloader/cache.rb
Expand Up @@ -308,7 +308,7 @@ def copy_source_and_clean(source, destination, spec)
specs_by_platform = group_subspecs_by_platform([spec])
destination.parent.mkpath
Cache.write_lock(destination) do
FileUtils.cp_r(source, destination, :remove_destination => true)
Pod::Executable.execute_command('rsync', ['-a', '--exclude=.git/fsmonitor--daemon.ipc', '--delete', "#{source}/", destination])
Pod::Installer::PodSourcePreparer.new(spec, destination).prepare!
Sandbox::PodDirCleaner.new(destination, specs_by_platform).clean!
end
Expand Down