Skip to content

Commit ec93bcb

Browse files
guitaripodclaude
andcommitted
fix(docc): resolve documentation build permissions issue
- Clean up existing directories before building to avoid permission conflicts - Fix --allow-writing-to-directory path to match output path - Remove @preconcurrency attributes that are unused on macOS with Swift 5.9 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent f55d3d2 commit ec93bcb

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.github/workflows/docc.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,19 @@ jobs:
3737
# Build documentation
3838
swift package resolve
3939
40+
# Clean up any existing directories
41+
rm -rf docs-temp deployment
42+
43+
# Create deployment directory
44+
mkdir -p deployment
45+
4046
# Generate documentation archive
41-
swift package --allow-writing-to-directory ./docs \
47+
swift package --allow-writing-to-directory ./docs-temp \
4248
generate-documentation --target SpeedrunKit \
4349
--output-path ./docs-temp \
4450
--transform-for-static-hosting \
4551
--hosting-base-path 'SpeedrunKit'
4652
47-
# Create deployment directory
48-
mkdir -p deployment
49-
5053
# Copy DocC generated content first
5154
cp -r docs-temp/* deployment/
5255

Sources/SpeedrunKit/API/SpeedrunConfiguration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@preconcurrency import Foundation
1+
import Foundation
22

33
/// Configuration for the Speedrun API client
44
public struct SpeedrunConfiguration: Sendable {

Sources/SpeedrunKit/Networking/URLSessionNetwork.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@preconcurrency import Foundation
1+
import Foundation
22
#if canImport(FoundationNetworking)
3-
@preconcurrency import FoundationNetworking
3+
import FoundationNetworking
44
#endif
55

66
// MARK: - Platform-specific URLSession async support

0 commit comments

Comments
 (0)