Skip to content

Commit

Permalink
Merge branch 'master' of github.com:vknabel/vscode-apple-swift-format
Browse files Browse the repository at this point in the history
  • Loading branch information
vknabel committed Jun 12, 2022
2 parents 3bd01e6 + fa54908 commit 27dfee3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ You can [install](https://github.com/apple/swift-format#matching-swift-format-to

```bash
# Using Mint
$ mint install apple/swift-format@swift-5.3-branch
$ mint install apple/swift-format@release/5.6
# Manually
$ git clone -b swift-5.3-branch https://github.com/apple/swift-format.git
$ swift build -c release
```

> **Note:** Pick the same branch name to install `apple/swift-format` as your Swift version! E.g. `swift-5.3-branch` for Swift `5.3`.
> **Attention:** Pick the same branch name to install `apple/swift-format` as your Swift version! E.g. `swift-5.5-branch` for Swift `5.5` and `release/5.6` for `5.6`. For a complete and up-to-date mapping, see [apple/swift-format#Matching Swift Format to your Swift version](https://github.com/apple/swift-format#matching-swift-format-to-your-swift-version).
### Local Installation

Add the package to your dependencies in `Package.swift`:

```diff
// swift-tools-version:5.3
// swift-tools-version:5.6

import PackageDescription

Expand All @@ -37,13 +37,13 @@ let package = Package(
.package(url: "https://github.com/orta/PackageConfig.git", from: "0.0.1"),
// Dev deps
.package(url: "https://github.com/orta/Komondor.git", from: "0.0.1"),
+ .package(url: "https://github.com/apple/swift-format.git", .branch("swift-5.3-branch")),
+ .package(url: "https://github.com/apple/swift-format.git", .branch("release/5.6")),
],
targets: [...]
)
```

> **Note:** Pick the same branch name to install `apple/swift-format` as your Swift version! E.g. `swift-5.3-branch` for Swift `5.3`.
> **Attention:** Pick the same branch name to install `apple/swift-format` as your Swift version! E.g. `swift-5.5-branch` for Swift `5.5` and `release/5.6` for `5.6`. For a complete and up-to-date mapping, see [apple/swift-format#Matching Swift Format to your Swift version](https://github.com/apple/swift-format#matching-swift-format-to-your-swift-version).
## Configuration

Expand Down

0 comments on commit 27dfee3

Please sign in to comment.