go-xcode
go-xcode copied to clipboard
Migrate packages
Summary
This PR migrates the codebase from v1 to v2 module structure, updating import paths and API calls. The migration includes moving packages like certificateutil, profileutil, export, exportoptions, and plistutil to the v2 module, replacing third-party dependencies with internal ones, and modernizing APIs with new patterns like ProfileProvider.
Walkthrough
| File | Summary |
|---|---|
| go.mod, go.sum | Updated dependencies: moved packages to direct deps, removed pkg/errors, updated go-utils/v2 |
| certificateutil/*.go | Added new certificateutil package with critical compilation error: 'pettern' typo should be 'pattern' |
| profileutil/*.go | Added new profileutil package with variable naming bugs in GetName() function |
| export/*.go | Added new export package with missing nil checks that could cause panics |
| exportoptions/*.go | Added new exportoptions package with String() methods returning nil instead of error |
| plistutil/plistutil.go | Added new plistutil package with potential type casting issues for numeric values |
| autocodesign/certdownloader/*.go | Incorrect import path update will cause compilation error |
| devportalservice/FileManager.go | Replaced custom mock with mockery-generated mock, but has fs.FileMode vs os.FileMode mismatch |
| autocodesign/localcodesignasset/*.go | Updated to v2 profileutil APIs with missing error handling and performance issues |
| artifacts/.go, autocodesign/.go, codesign/.go, exportoptionsgenerator/.go, metaparser/.go, xcarchive/.go, _integration_tests/*.go | Successfully migrated import paths from v1 to v2 and updated API calls |