Skip to content

Rewrite plutil for parity with all Darwin functionality #5172

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

Merged
merged 10 commits into from
Apr 9, 2025

Conversation

parkera
Copy link
Contributor

@parkera parkera commented Feb 19, 2025

A new implementation for plutil, which achieves parity with Darwin by sharing the same implementation.

This is in swift-corelibs-foundation instead of swift-foundation, for now, because it depends on the "raw" serialization classes PropertyListSerialization and JSONSerialization, plus a few CoreFoundation-isms. I think those can probably be addressed in follow-ups, which would let us sink this down to the essentials package.

@parkera parkera requested a review from jmschonfeld February 19, 2025 22:37
@parkera
Copy link
Contributor Author

parkera commented Feb 19, 2025

@swift-ci test

@parkera parkera closed this Feb 19, 2025
@parkera parkera reopened this Feb 19, 2025
@parkera parkera force-pushed the parkera/plutil_rewrite branch from 313c7fc to 641ab89 Compare February 19, 2025 22:57
@parkera
Copy link
Contributor Author

parkera commented Feb 25, 2025

@swift-ci test

6 similar comments
@parkera
Copy link
Contributor Author

parkera commented Feb 28, 2025

@swift-ci test

@parkera
Copy link
Contributor Author

parkera commented Feb 28, 2025

@swift-ci test

@parkera
Copy link
Contributor Author

parkera commented Mar 4, 2025

@swift-ci test

@parkera
Copy link
Contributor Author

parkera commented Mar 13, 2025

@swift-ci test

@parkera
Copy link
Contributor Author

parkera commented Mar 17, 2025

@swift-ci test

@parkera
Copy link
Contributor Author

parkera commented Mar 18, 2025

@swift-ci test

@parkera parkera force-pushed the parkera/plutil_rewrite branch from 46b076d to be1272f Compare March 25, 2025 22:58
@parkera
Copy link
Contributor Author

parkera commented Mar 25, 2025

@swift-ci test

@parkera
Copy link
Contributor Author

parkera commented Mar 26, 2025

Looks like the TestProcess test has some hard coded plutil output that needs to be fixed up, or it's a bug in the output of the new implementation.

TestFoundation/TestProcess.swift:581: error: TestProcess.test_plutil : XCTAssertEqual failed: ("Optional("")") is not equal to ("Optional("No files specified.")") - 
Test Case 'TestProcess.test_plutil' failed (0.052 seconds)

@parkera
Copy link
Contributor Author

parkera commented Mar 26, 2025

The test was looking at stdout for that output, but I moved it to stderr - which seems more correct. Fixed up the test.

@parkera
Copy link
Contributor Author

parkera commented Mar 26, 2025

@swift-ci test

@parkera
Copy link
Contributor Author

parkera commented Mar 27, 2025

@swift-ci test windows

1 similar comment
@parkera
Copy link
Contributor Author

parkera commented Mar 31, 2025

@swift-ci test windows

@parkera
Copy link
Contributor Author

parkera commented Apr 4, 2025

@swift-ci test

@parkera
Copy link
Contributor Author

parkera commented Apr 4, 2025

@swift-ci test windows

@parkera
Copy link
Contributor Author

parkera commented Apr 7, 2025

@swift-ci test

@parkera parkera merged commit ad782e2 into swiftlang:main Apr 9, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants