-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: SPM(Swift Package Manager) backend (#2241)
* first simple implementation * get executables list and work with them only * rename SpmForge -> SPMBackend * Package description deserialization with serde * copy build artifacts * refactoring * spm e2e tests * use project git client * refactoring * fix repo url name usage; fix git checkout * update test assert * fix lint violations * fix package version in e2e test * add spm repo parsing unit tests * Better error message Co-authored-by: Pedro Piñera Buendía <[email protected]> * reformat --------- Co-authored-by: Pedro Piñera Buendía <[email protected]>
- Loading branch information
Showing
6 changed files
with
408 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Enable test when `Swift` installation will be fixed on Linux (for docker run) | ||
# Wait for https://github.com/jdx/mise/pull/1708 | ||
exit 0 | ||
|
||
mise use swift | ||
|
||
assert "mise x spm:nicklockwood/[email protected] -- swiftformat --version" "0.53.10" | ||
assert "mise x spm:https://github.com/nicklockwood/[email protected] -- swiftformat --version" "0.53.10" | ||
|
||
# test package with resources (`templates list` command depends on resources being installed) | ||
assert "mise x spm:SwiftGen/[email protected] --verbose -- swiftgen templates list --only colors" "colors: | ||
- literals-swift4 | ||
- literals-swift5 | ||
- swift4 | ||
- swift5 | ||
--- | ||
You can also specify custom templates by path, using \`templatePath\` instead of \`templateName\`. | ||
For more information, see the documentation on GitHub or use \`swiftgen template doc\`. | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.