Skip to content

Commit dad0c2f

Browse files
Merge pull request #52 from SwiftPackageIndex/delete-plugin-references
remove references to validation plugin
2 parents 1297f85 + 2bbbeb6 commit dad0c2f

File tree

5 files changed

+1
-90
lines changed

5 files changed

+1
-90
lines changed

Package.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,12 @@ let package = Package(
2020
name: "SPIManifest",
2121
platforms: [.macOS(.v10_15)],
2222
products: [
23-
.executable(name: "validate-spi-manifest", targets: ["validate-spi-manifest"]),
2423
.library(name: "SPIManifest", targets: ["SPIManifest"]),
2524
],
2625
dependencies: [
2726
.package(url: "https://github.com/jpsim/Yams.git", "4.0.0"..<"6.0.0"),
2827
],
2928
targets: [
30-
.executableTarget(name: "validate-spi-manifest", dependencies: ["SPIManifest"]),
3129
.target(name: "SPIManifest", dependencies: ["Yams"]),
3230
.testTarget(name: "SPIManifestTests", dependencies: ["SPIManifest"]),
3331
]

Plugins/ValidatorPlugin/ValidatorPlugin.swift

Lines changed: 0 additions & 26 deletions
This file was deleted.

Sources/SPIManifest/Documentation.docc/ManifestValidation.md

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,44 +6,10 @@ How to validate `.spi.yml` files.
66

77
The easiest way to validate a `.spi.yml` is via the [Online Validator](https://swiftpackageindex.com/validate-spi-manifest) on the [Swift Package Index website](https://swiftpackageindex.com).
88

9-
You can also use the `validate-spi-manifest` executable to validate your `.spi.yml` file.
10-
119
### Online Validator
1210

1311
The [Online Validator](https://swiftpackageindex.com/validate-spi-manifest) is a simple web form where you can submit your sample `.spi.yml` file and it will run the exact same parser as during package processing.
1412

1513
The validator will display the parsed result or error messages if it fails.
1614

1715
![](online-validator.png)
18-
19-
### Validation Executable
20-
21-
#### Installation
22-
23-
You can build and install the validation executable by cloning this package and running `make install`:
24-
25-
```sh
26-
git clone https://github.com/SwiftPackageIndex/SPIManifest.git && cd SPIManifest
27-
make install
28-
```
29-
30-
This will copy the executable to `/usr/local/bin/`. To uninstall it, run
31-
32-
```sh
33-
make uninstall
34-
```
35-
36-
You can also install it using [Mint](https://swiftpackageindex.com/yonaskolb/Mint):
37-
38-
```sh
39-
mint install SwiftPackageIndex/SPIManifest
40-
```
41-
42-
#### Validation with the Executable
43-
44-
Once installed, you can run the executable with the path to an `.spi.yml` to validate it:
45-
46-
```sh
47-
❯ validate-spi-manifest ~/Projects/MyPackage/.spi.yml
48-
✅ The file is valid.
49-
```

Sources/SPIManifest/Documentation.docc/SPIManifest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Here are some examples of things that can be configured by this file:
1818

1919
### Validation
2020

21-
Swift Package Index manifests can be validated for correctness via the [Online Validator](https://swiftpackageindex.com/validate-spi-manifest) or via an executable that comes with this package. See
21+
Swift Package Index manifests can be validated for correctness via the [Online Validator](https://swiftpackageindex.com/validate-spi-manifest). See
2222

2323
- <doc:ManifestValidation>
2424

Sources/validate-spi-manifest/Validator.swift

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)