Skip to content

Commit 88fb7c7

Browse files
authored
fix: Add missing f string in swiftcov func of xcode plugin (#96)
Fixes code coverage generation for some swift projects, currently looks like this: ```sh ==> Running upload-coverage ./codecov upload-coverage -t <redacted> --git-service github --gcov-executable gcov info - 2025-09-18 21:10:08,461 -- ci service found: github-actions info - 2025-09-18 21:10:08,620 -- Running swift coverage on the following list of files: --- {"matched_paths": ["/Users/runner/Library/Developer/Xcode/DerivedData/ChromaSwift-gtzsdaclinjizxegjyiqrvlbelap/Build/ProfileData/2823e84cf20da531196b91b0539218db7086d1c7/Coverage.profdata"]} info - 2025-09-18 21:10:08,625 -- + Building reports for CChromaprintTests xctest error: failed to load coverage: '/Users/runner/Library/Developer/Xcode/DerivedData/ChromaSwift-gtzsdaclinjizxegjyiqrvlbelap/Build/Products/Debug/CChromaprintTests.xctest/Contents/MacOS/{proj}': No such file or directory warning - 2025-09-18 21:10:09,877 -- llvm-cov failed to produce results for /Users/runner/Library/Developer/Xcode/DerivedData/ChromaSwift-gtzsdaclinjizxegjyiqrvlbelap/Build/Products/Debug/CChromaprintTests.xctest/Contents/MacOS/{proj} ```
1 parent a9357dc commit 88fb7c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codecov-cli/codecov_cli/plugins/xcode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def swiftcov(self, path: pathlib.Path, app_name: str) -> None:
9090
dest = (
9191
proj_path
9292
if proj_path.is_file()
93-
else dir_path / "Contents/MacOS/{proj}"
93+
else dir_path / f"Contents/MacOS/{proj}"
9494
)
9595
output_file_name = f"{proj}.{type}.coverage.txt".replace(" ", "")
9696
self.run_llvm_cov(output_file_name, path, dest)

0 commit comments

Comments
 (0)