swiftly
swiftly copied to clipboard
Add development help
There are no explanations on how to help developing Swiftly.
I personally had to:
- Use SSWG's VSCode extension and set up a dev container to develop Swiftly on macOS, because otherwise there are some macOS-related errors, and also Swiftly doesn't yet support macOS.
- Create a file at
/root/.local/share/swiftly/config.jsoncontaining the json below, because otherwise swiftly would complain about the file and wouldn't work:
{
"platform" : {
"nameFull" : "ubuntu22.04",
"name" : "ubuntu2204",
"namePretty" : "Ubuntu 22.04.1 LTS"
},
"inUse" : null,
"installedToolchains" : []
}
- Use
swift run swiftly [subcommand].
@MahdiBM we don't really have a contributors guide at the moment. But, we do have a subcommand of swiftly devoted to configuring and installing itself that should work in dev too.
swift run swiftly init
And then you could try things like:
swift run swiftly install main-snapshot
But then, if you are already using swiftly it will tend to overwrite it and in each of these examples it might use a different version of swift.