-
Notifications
You must be signed in to change notification settings - Fork 0
chore: refactor resolve command #15
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
Conversation
7ef56e9 to
bf0cc3c
Compare
| ```sh | ||
| ./Binary/binary-dependencies-manager \ | ||
| --dependencies path/to/dependencies.json \ | ||
| --config path/to/.binary-dependencies.yaml \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:sigh:
README.md
Outdated
| output: MyLibrary | ||
| - repo: AnotherOrg/AnotherBinary | ||
| tag: 0.9.0 | ||
| checksum: d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some easter egg will be great here. i.e.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. It's a hash sum of MacPaw ❤️
| cacheDirectoryPath: cacheDirectoryPath, | ||
| outputDirectoryPath: outputDirectoryPath | ||
| dependencies: configuration!.dependencies, | ||
| cacheDirectoryPath: cacheDirectoryPath!, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run throws. No force casts, please
assertionFailure, preconditionafailure. not force casts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| import Utils | ||
|
|
||
| public struct DependenciesResolverRunner { | ||
| public struct DependenciesResolverRunner: Codable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Storing it as a var in the ParsableCommand requires it to be Decodable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is wrong on so many levels.. can we just creat this runner in Run? and avoid having this as a property?
bfe3dac to
bdd40ed
Compare
bdd40ed to
3d5d165
Compare
* chore: refactor resolve command * chore: update resolve command * chore: add precondition * chore: add easter egg * chore: store dependenciesResolver * chore: fix unwrapping
…rt (#30) * chore: ignore SPM folders * chore: add BinaryDependenciesConfiguration (#9) * chore: add yams (#7) * chore: add config reader (#10) * fix: make sure that tests can be ran with `BinaryDependencyManager` target (#8) * fix: rename BinaryDependenciesManager to binary_dependencies_manager * fix: Make sure that target naming is CamelCase and tests works * fix: add Utils which is used from the Manager and the Runenr * fix: Add binary file to exclude * chpore: fix imports --------- Co-authored-by: Paul Taykalo <ptaykalo@macpaw.com> * chore: chore: add CLI and GitHub (#12) * chore: add Asset to Dependency (#13) * chore: add version (#11) * chore: public interface (#14) * chore: add BinaryDependenciesDownloader (#16) * chore: add GenericError (#17) * chore: add version to the BinaryDependenciesManager (#18) * chore: refactor resolve command (#15) * chore: refactor resolve command * chore: update resolve command * chore: add precondition * chore: add easter egg * chore: store dependenciesResolver * chore: fix unwrapping * chore: update file manager protocol (#20) * chore: remove unneded downloadSourceCode method (#26) * fix: resolve command (#23) * chore: update CleanCommand (#22) * chore: validate CLI run exit code (#24) * chore: Utils tests target (#25) * chore: add copyItem to FileManagerProtocol (#33) * chore: add ChecksumCalculatorProtocol (#32) * ci: add test workflow [refactor branch] (#28) * ci: add test workflow * fix(ci): linux build * chore: specify derived data for xcodebuild * chore: update Sources/BinaryDependencyManager/Utils/BinaryDependenciesConfigurationReader.swift * chore: refactor runner (#19) * chore: refactor DepeneciesResolverRunner * chore: Tests cleanup (#34) * Remove deduplication and simplify test setup * A bit refactored tests * fix: failing test with uuid neste temp dir * fix: unwrapping * chore: bump min target (#35) --------- Co-authored-by: Paul Taykalo <ptaykalo@macpaw.com> * chore: refactor download tests (#36) * fix: ci compilation (#38) * chore: refactor tests (#37) * chore: standartize file URLs and update tests (#39) --------- Co-authored-by: Paul Taykalo <ptaykalo@macpaw.com>
Pull Request Template
Description
ResolveCommand refactoring.
--config/-c.Type of Change
Checklist
Screenshots (if applicable)
Additional Context
Add any other context or screenshots about the pull request here.