Skip to content

Commit 545d844

Browse files
authored
Merge pull request #3772 from SwiftPackageIndex/collection-signing-note
Added a note about disabling package collection signing
2 parents 21101b7 + 4e2885a commit 545d844

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

Sources/App/Views/Author/AuthorShow+View.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ enum AuthorShow {
5757
),
5858
.text(".")
5959
),
60+
.p(
61+
.strong("Note:"),
62+
.text(" Package collection signing is temporarily disabled. Package collections generated by Swift Package Index will still work, but you may get a certificate or security warning when using them."),
63+
),
6064
.copyableInputForm(buttonName: "Copy Package Collection URL",
6165
eventName: "Copy Package Collection URL Button",
6266
valueToCopy: SiteURL.packageCollectionAuthor(.value(model.owner)).absoluteURL()),

Sources/App/Views/Keyword/KeywordShow+View.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ enum KeywordShow {
5656
),
5757
.text(".")
5858
),
59+
.p(
60+
.strong("Note:"),
61+
.text(" Package collection signing is temporarily disabled. Package collections generated by Swift Package Index will still work, but you may get a certificate or security warning when using them."),
62+
),
5963
.copyableInputForm(buttonName: "Copy Package Collection URL",
6064
eventName: "Copy Package Collection URL Button",
6165
valueToCopy: SiteURL.packageCollectionKeyword(.value(model.keyword)).absoluteURL()),

Tests/AppTests/__Snapshots__/WebpageSnapshotTests/AuthorShow_document.1.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ <h2 class="trimmed">Packages authored by Test Author</h2>
8686
<p>These packages are available as a package collection,
8787
<a href="/package-collections">usable in Xcode or SwiftPM</a>.
8888
</p>
89+
<p>
90+
<strong>Note:</strong> Package collection signing is temporarily disabled. Package collections generated by Swift Package Index will still work, but you may get a certificate or security warning when using them.
91+
</p>
8992
<form class="copyable-input">
9093
<input type="text" data-button-name="Copy Package Collection URL" data-event-name="Copy Package Collection URL Button" value="http://localhost:8080/test-author/collection.json" readonly/>
9194
</form>

Tests/AppTests/__Snapshots__/WebpageSnapshotTests/KeywordShow_document.1.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ <h2 class="trimmed">Packages for keyword “networking”</h2>
8686
<p>These packages are available as a package collection,
8787
<a href="/package-collections">usable in Xcode or SwiftPM</a>.
8888
</p>
89+
<p>
90+
<strong>Note:</strong> Package collection signing is temporarily disabled. Package collections generated by Swift Package Index will still work, but you may get a certificate or security warning when using them.
91+
</p>
8992
<form class="copyable-input">
9093
<input type="text" data-button-name="Copy Package Collection URL" data-event-name="Copy Package Collection URL Button" value="http://localhost:8080/keywords/networking/collection.json" readonly/>
9194
</form>

0 commit comments

Comments
 (0)