Skip to content

Commit bc1b2f2

Browse files
authored
Merge pull request #3593 from SwiftPackageIndex/transient-dependency-note
Added a note clarifying the dependency count to the package metadata
2 parents 1e64b24 + 0d222a4 commit bc1b2f2

18 files changed

+72
-17
lines changed

FrontEnd/styles/package.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@
9696
}
9797

9898
li.dependencies {
99+
display: flex;
99100
grid-column-start: span 2;
101+
flex-direction: column;
100102
background-image: var(--image-dependencies);
101103
}
102104

Sources/App/Views/PackageController/GetRoute.Model+ext.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,12 @@ extension API.PackageController.GetRoute.Model {
319319

320320
return .li(
321321
.class("dependencies"),
322-
.text(dependenciesPhrase)
322+
.div(
323+
.text(dependenciesPhrase)
324+
),
325+
.small(
326+
.text("Including all transitive and test dependencies.")
327+
)
323328
)
324329
}
325330

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ <h4>When working with a Swift Package Manager manifest:</h4>
161161
<a href="https://github.com/Alamofire/Alamofire/issues">27 open issues</a> and
162162
<a href="https://github.com/Alamofire/Alamofire/pulls">5 open pull requests</a>. The last issue was closed 5 days ago and the last pull request was merged/closed 6 days ago.
163163
</li>
164-
<li class="dependencies">This package depends on 2 other packages.</li>
164+
<li class="dependencies">
165+
<div>This package depends on 2 other packages.</div>
166+
<small>Including all transitive and test dependencies.</small>
167+
</li>
165168
<li class="license"> licensed</li>
166169
<li class="stars">17 stars</li>
167170
<li class="libraries">3 libraries</li>

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ <h4>When working with a Swift Package Manager manifest:</h4>
161161
<a href="https://github.com/Alamofire/Alamofire/issues">27 open issues</a> and
162162
<a href="https://github.com/Alamofire/Alamofire/pulls">5 open pull requests</a>. The last issue was closed 5 days ago and the last pull request was merged/closed 6 days ago.
163163
</li>
164-
<li class="dependencies">This package depends on 2 other packages.</li>
164+
<li class="dependencies">
165+
<div>This package depends on 2 other packages.</div>
166+
<small>Including all transitive and test dependencies.</small>
167+
</li>
165168
<li class="license warning">
166169
<a href="https://example.com/license.html" title="GNU General Public License v3.0">GPL 3.0</a> licensed
167170
<a class="more-info" href="/faq#licenses">Why might the GPL 3.0 be problematic?</a>

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,10 @@ <h4>When working with a Swift Package Manager manifest:</h4>
165165
<a href="https://github.com/Alamofire/Alamofire/issues">27 open issues</a> and
166166
<a href="https://github.com/Alamofire/Alamofire/pulls">5 open pull requests</a>. The last issue was closed 5 days ago and the last pull request was merged/closed 6 days ago.
167167
</li>
168-
<li class="dependencies">This package depends on 2 other packages.</li>
168+
<li class="dependencies">
169+
<div>This package depends on 2 other packages.</div>
170+
<small>Including all transitive and test dependencies.</small>
171+
</li>
169172
<li class="license"> licensed</li>
170173
<li class="stars">17 stars</li>
171174
<li class="libraries">3 libraries</li>

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ <h4>When working with a Swift Package Manager manifest:</h4>
161161
<a href="https://github.com/Alamofire/Alamofire/issues">27 open issues</a> and
162162
<a href="https://github.com/Alamofire/Alamofire/pulls">5 open pull requests</a>. The last issue was closed 5 days ago and the last pull request was merged/closed 6 days ago.
163163
</li>
164-
<li class="dependencies">This package depends on 2 other packages.</li>
164+
<li class="dependencies">
165+
<div>This package depends on 2 other packages.</div>
166+
<small>Including all transitive and test dependencies.</small>
167+
</li>
165168
<li class="license"> licensed</li>
166169
<li class="stars">17 stars</li>
167170
<li class="libraries">3 libraries</li>

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ <h4>When working with a Swift Package Manager manifest:</h4>
161161
<a href="https://github.com/Alamofire/Alamofire/issues">27 open issues</a> and
162162
<a href="https://github.com/Alamofire/Alamofire/pulls">5 open pull requests</a>. The last issue was closed 5 days ago and the last pull request was merged/closed 6 days ago.
163163
</li>
164-
<li class="dependencies">This package depends on 2 other packages.</li>
164+
<li class="dependencies">
165+
<div>This package depends on 2 other packages.</div>
166+
<small>Including all transitive and test dependencies.</small>
167+
</li>
165168
<li class="custom-collections">Member of the
166169
<a href="/collections/custom-collection">Custom Collection</a> collection.
167170
</li>

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ <h4>When working with a Swift Package Manager manifest:</h4>
161161
<a href="https://github.com/Alamofire/Alamofire/issues">27 open issues</a> and
162162
<a href="https://github.com/Alamofire/Alamofire/pulls">5 open pull requests</a>. The last issue was closed 5 days ago and the last pull request was merged/closed 6 days ago.
163163
</li>
164-
<li class="dependencies">This package depends on 2 other packages.</li>
164+
<li class="dependencies">
165+
<div>This package depends on 2 other packages.</div>
166+
<small>Including all transitive and test dependencies.</small>
167+
</li>
165168
<li class="license"> licensed</li>
166169
<li class="stars">17 stars</li>
167170
<li class="libraries">3 libraries</li>

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ <h4>When working with a Swift Package Manager manifest:</h4>
161161
<a href="https://github.com/Alamofire/Alamofire/issues">27 open issues</a> and
162162
<a href="https://github.com/Alamofire/Alamofire/pulls">5 open pull requests</a>. The last issue was closed 5 days ago and the last pull request was merged/closed 6 days ago.
163163
</li>
164-
<li class="dependencies">This package depends on 2 other packages.</li>
164+
<li class="dependencies">
165+
<div>This package depends on 2 other packages.</div>
166+
<small>Including all transitive and test dependencies.</small>
167+
</li>
165168
<li class="license"> licensed</li>
166169
<li class="stars">17 stars</li>
167170
<li class="libraries">3 libraries</li>

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ <h4>When working with a Swift Package Manager manifest:</h4>
161161
<a href="https://github.com/Alamofire/Alamofire/issues">27 open issues</a> and
162162
<a href="https://github.com/Alamofire/Alamofire/pulls">5 open pull requests</a>. The last issue was closed 5 days ago and the last pull request was merged/closed 6 days ago.
163163
</li>
164-
<li class="dependencies">This package depends on 2 other packages.</li>
164+
<li class="dependencies">
165+
<div>This package depends on 2 other packages.</div>
166+
<small>Including all transitive and test dependencies.</small>
167+
</li>
165168
<li class="license"> licensed</li>
166169
<li class="stars">17 stars</li>
167170
<li class="libraries">3 libraries</li>

0 commit comments

Comments
 (0)