Skip to content

Commit d9a827b

Browse files
authored
Merge pull request #415 from tayloraswift/6.1
upgrade 6.0 → 6.1
2 parents c76deda + 9414bec commit d9a827b

23 files changed

+78
-50
lines changed

.github/workflows/Docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
- name: Install Swift
2020
uses: tayloraswift/swift-install-action@master
2121
with:
22-
swift-prefix: "swift-6.0.3-release/ubuntu2404/swift-6.0.3-RELEASE"
23-
swift-id: "swift-6.0.3-RELEASE-ubuntu24.04"
22+
swift-prefix: "swift-6.1-release/ubuntu2404/swift-6.1-RELEASE"
23+
swift-id: "swift-6.1-RELEASE-ubuntu24.04"
2424

2525
# This installs an older version of Unidoc, not the one we are testing.
2626
# We use `--static-swift-stdlib` so it doesn’t matter if the Unidoc binary was

.github/workflows/Test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
-v $PWD:/swift/swift-unidoc \
3535
-w /swift/swift-unidoc \
3636
-e SWIFT_INSTALLATION=/usr \
37-
swift:6.0.3-noble \
37+
swift:6.1-noble \
3838
/bin/bash Scripts/Linux/TestAll
3939
4040
linux:
@@ -47,8 +47,8 @@ jobs:
4747
- name: Install Swift
4848
uses: tayloraswift/swift-install-action@master
4949
with:
50-
swift-prefix: "swift-6.0.3-release/ubuntu2404/swift-6.0.3-RELEASE"
51-
swift-id: "swift-6.0.3-RELEASE-ubuntu24.04"
50+
swift-prefix: "swift-6.1-release/ubuntu2404/swift-6.1-RELEASE"
51+
swift-id: "swift-6.1-RELEASE-ubuntu24.04"
5252

5353
- name: Checkout repository
5454
uses: actions/checkout@v3

.mailmap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
2-
1+
2+

Scripts/Linux/GeneratePackageSymbolGraphs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ ssgc slave https://github.com/swiftlang/swift-syntax.git 600.0.1 \
2323
-u $SWIFT_INSTALLATION \
2424
-o TestPackages/swift-syntax.bson
2525

26-
ssgc slave https://github.com/pointfreeco/swift-snapshot-testing.git 1.17.5 \
26+
ssgc slave https://github.com/pointfreeco/swift-snapshot-testing.git 1.18.3 \
2727
-u $SWIFT_INSTALLATION \
2828
-o TestPackages/swift-snapshot-testing.bson
2929

30-
ssgc slave https://github.com/swiftlang/indexstore-db.git swift-6.0-RELEASE \
30+
ssgc slave https://github.com/swiftlang/indexstore-db.git swift-6.1-RELEASE \
3131
-u $SWIFT_INSTALLATION \
3232
-o TestPackages/indexstore-db.bson \
3333
--Xcxx -I$SWIFT_INSTALLATION/lib/swift \

Scripts/Linux/x86_64/aarch64-jammy.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM tayloraswift/swift-cross-aarch64:6.0.3-jammy
1+
FROM tayloraswift/swift-cross-aarch64:6.1-jammy
22

33
# Only bash supports multiline strings
44
SHELL ["/bin/bash", "-c"]

Scripts/Linux/x86_64/aarch64-noble.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM tayloraswift/swift-cross-aarch64:6.0.3-noble
1+
FROM tayloraswift/swift-cross-aarch64:6.1-noble
22

33
# Only bash supports multiline strings
44
SHELL ["/bin/bash", "-c"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM tayloraswift/swift-cross-aarch64:6.0.3-jammy
1+
FROM tayloraswift/swift-cross-aarch64:6.1-jammy
22

33
RUN apt update
44
RUN apt -y install libjemalloc-dev:amd64 libjemalloc2:amd64
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM tayloraswift/swift-cross-aarch64:6.0.3-noble
1+
FROM tayloraswift/swift-cross-aarch64:6.1-noble
22

33
RUN apt update
44
RUN apt -y install libjemalloc-dev:amd64 libjemalloc2:amd64

Sources/SymbolGraphCompiler/SSGC.SymbolDump.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ extension SSGC.SymbolDump
9494

9595
for j:Int in self.vertices.indices
9696
{
97-
try
9897
{
9998
// Deport foreign doccomments.
10099
if let doccomment:SymbolGraphPart.Vertex.Doccomment = $0.doccomment,
@@ -103,16 +102,18 @@ extension SSGC.SymbolDump
103102
$0.doccomment = nil
104103
}
105104
// Trim file path prefixes.
105+
// As of 6.1, symbolgraph-extract sometimes emits paths from inside the swift
106+
// installation directory.
106107
guard
107-
let base:Symbol.FileBase = copy base
108+
let base:Symbol.FileBase = copy base,
109+
let rebased:Symbol.File = try? $0.location?.file.rebased(against: base)
108110
else
109111
{
110112
$0.location = nil
111113
return
112114
}
113115

114-
try $0.location?.file.rebase(against: base)
115-
116+
$0.location?.file = rebased
116117
} (&self.vertices[j])
117118
}
118119
}

Sources/SymbolGraphPartTests/DocumentationInheritance.swift

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -132,36 +132,42 @@ struct DocumentationInheritance
132132
.intrinsicWitness(.init(
133133
_ : "s24DocumentationInheritance15OtherRefinementPAAE8protocolytvp",
134134
of: "s24DocumentationInheritance8ProtocolP8protocolytvp",
135-
origin: .init("s24DocumentationInheritance8ProtocolP8protocolytvp"))),
135+
origin: "s24DocumentationInheritance8ProtocolP8protocolytvp")),
136+
137+
.requirement(.init(
138+
_ : "s24DocumentationInheritance10RefinementP8protocolytvp",
139+
of: "s24DocumentationInheritance10RefinementP",
140+
origin: "s24DocumentationInheritance8ProtocolP8protocolytvp")),
141+
142+
.override(.init(
143+
_ : "s24DocumentationInheritance10RefinementP8protocolytvp",
144+
of: "s24DocumentationInheritance8ProtocolP8protocolytvp",
145+
origin: "s24DocumentationInheritance8ProtocolP8protocolytvp")),
136146

137147
.member(.init(
138148
_ : "s24DocumentationInheritance9ConformerV7nowhereytvp",
139149
in: .scalar("s24DocumentationInheritance9ConformerV"),
140-
origin: .init("s24DocumentationInheritance10RefinementP7nowhereytvp"))),
150+
origin: "s24DocumentationInheritance10RefinementP7nowhereytvp")),
141151

142152
.member(.init(
143153
_ : "s24DocumentationInheritance9ConformerV10refinementytvp",
144154
in: .scalar(.init("s:24DocumentationInheritance9ConformerV")!),
145-
origin: .init(.init(
146-
"s:24DocumentationInheritance10RefinementP10refinementytvp")!))),
155+
origin: "s24DocumentationInheritance10RefinementP10refinementytvp")),
147156

148157
.member(.init(
149158
_ : "s24DocumentationInheritance9ConformerV9conformerytvp",
150159
in: .scalar("s24DocumentationInheritance9ConformerV"),
151-
origin: .init(
152-
"s24DocumentationInheritance10RefinementP9conformerytvp"))),
160+
origin: "s24DocumentationInheritance10RefinementP9conformerytvp")),
153161

154162
.member(.init(
155163
_ : "s24DocumentationInheritance9ConformerV10everywhereytvp",
156164
in: .scalar("s24DocumentationInheritance9ConformerV"),
157-
origin: .init(
158-
"s24DocumentationInheritance10RefinementP10everywhereytvp"))),
165+
origin: "s24DocumentationInheritance10RefinementP10everywhereytvp")),
159166

160167
.member(.init(
161168
_ : "s24DocumentationInheritance9ConformerV8protocolytvp",
162169
in: .scalar("s24DocumentationInheritance9ConformerV"),
163-
origin: .init(
164-
"s24DocumentationInheritance8ProtocolP8protocolytvp"))),
170+
origin: "s24DocumentationInheritance8ProtocolP8protocolytvp")),
165171
])
166172
}
167173
}

0 commit comments

Comments
 (0)