Build Information
Successful build of SwiftySCADKit, reference master (e1c308
), with Swift 6.1 for Linux on 25 Apr 2025 18:43:40 UTC.
Swift 6 data race errors: 1
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Samasaur1/SwiftySCADKit.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/Samasaur1/SwiftySCADKit
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at e1c3080 Add import statement/function
Cloned https://github.com/Samasaur1/SwiftySCADKit.git
Revision (git rev-parse @):
e1c30803a2399ebf1d184191417fd3dd2a7bd0f7
SUCCESS checkout https://github.com/Samasaur1/SwiftySCADKit.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/Samasaur1/SwiftySCADKit.git
https://github.com/Samasaur1/SwiftySCADKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "SwiftySCADKit",
"name" : "SwiftySCADKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftySCADKit",
"targets" : [
"SwiftySCADKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftySCADKitTests",
"module_type" : "SwiftTarget",
"name" : "SwiftySCADKitTests",
"path" : "Tests/SwiftySCADKitTests",
"sources" : [
"SwiftySCADKitTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"SwiftySCADKit"
],
"type" : "test"
},
{
"c99name" : "SwiftySCADKit",
"module_type" : "SwiftTarget",
"name" : "SwiftySCADKit",
"path" : "Sources/SwiftySCADKit",
"product_memberships" : [
"SwiftySCADKit"
],
"sources" : [
"BasicShapes.swift",
"BooleanOperators.swift",
"Import.swift",
"OpenSCAD.swift",
"Transformations.swift"
],
"type" : "library"
}
],
"tools_version" : "4.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Emitting module SwiftySCADKit
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:19:5: warning: 'public' modifier is redundant for static method declared in a public extension
17 | /// - centered: Whether or not the cube should be centered on the origin.
18 | /// - Returns: A cube with the specified side length.
19 | public static func cube(withSideLength sideLength: Double, centered: Bool) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
20 | return OpenSCAD("cube([\(sideLength), \(sideLength), \(sideLength)], \(centered));")
21 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:30:5: warning: 'public' modifier is redundant for static method declared in a public extension
28 | /// - centered: Whether or not this object should be centered on the origin.
29 | /// - Returns: A 'cube' (rectangular prism) with the specified dimensions.
30 | public static func cube(height: Double, width: Double, depth: Double, centered: Bool) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
31 | return OpenSCAD("cube([\(width), \(depth), \(height)], \(centered));")
32 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:41:5: warning: 'public' modifier is redundant for static method declared in a public extension
39 | /// - centered: Whether or not this object should be centered on the origin.
40 | /// - Returns: A rectangular prism with the specified dimensions.
41 | public static func rectangularPrism(height: Double, width: Double, depth: Double, centered: Bool) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
42 | return cube(height:height, width:width, depth: depth, centered: centered)
43 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:91:5: warning: 'public' modifier is redundant for static method declared in a public extension
89 | /// - Parameter radius: The radius of the sphere.
90 | /// - Returns: A sphere with the specified radius.
91 | public static func sphere(_ radius: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
92 | return OpenSCAD("sphere(\(radius), $fn=\(OPENSCAD_CONFIG.SPHERE_RESOLUTION));")
93 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:124:5: warning: 'public' modifier is redundant for static method declared in a public extension
122 | /// - centered: Whether of not the cylinder is centered on the origin.
123 | /// - Returns: A cylinder with the specified dimensions.
124 | public static func cylinder(height: Double, topRadius: Double, bottomRadius: Double, centered: Bool) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
125 | return OpenSCAD("cylinder($fn = \(OPENSCAD_CONFIG.SPHERE_RESOLUTION), \(height), \(bottomRadius), \(topRadius), \(centered));")
126 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:153:5: warning: 'public' modifier is redundant for struct declared in a public extension
151 | public extension OpenSCAD {
152 | /// A representation of a point in 3D space.
153 | public struct Point: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
154 | /// The x value of the point.
155 | public var x: Double
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:182:5: warning: 'public' modifier is redundant for struct declared in a public extension
180 | }
181 | /// A representation of a face of a polyhedron.
182 | public struct Face: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
183 | public var points: [Point]
184 | public init(points: [Point]) {
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:195:5: warning: 'public' modifier is redundant for static method declared in a public extension
193 | /// - Parameter faces: The faces of the polyhedron.
194 | /// - Returns: A polyhedron with the given faces.
195 | public static func polyhedron(faces: [Face]) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
196 | var points: [Point] = []
197 | for face in faces {
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:228:5: warning: 'public' modifier is redundant for static method declared in a public extension
226 | /// - Parameter faces: The faces of the polyhedron.
227 | /// - Returns: A polyhedron with the given faces.
228 | public static func polyhedron(faces: Face...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
229 | return polyhedron(faces: faces)
230 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:265:5: warning: 'public' modifier is redundant for static method declared in a public extension
263 | /// - top: The top three points.
264 | /// - Returns: A triangular prism created from the given points.
265 | public static func triangularPrism(bottom: (a: Point, b: Point, c: Point), top: (a: Point, b: Point, c: Point)) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
266 | return polyhedron(faces: Face(points: [bottom.a, bottom.c, bottom.b]), Face(points: [top.a, top.b, top.c]), Face(points: [top.b, top.a, bottom.a, bottom.b]), Face(points: [top.a, top.c, bottom.c, bottom.a]), Face(points: [top.c, top.b, bottom.b, bottom.c]))
267 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:297:5: warning: 'public' modifier is redundant for static method declared in a public extension
295 | /// - top: The top four points.
296 | /// - Returns: A hexahedron created from the given points.
297 | public static func hexahedron(bottom: (a: Point, b: Point, c: Point, d: Point), top: (a: Point, b: Point, c: Point, d: Point)) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
298 | return polyhedron(faces: Face(points: top.a, top.b, top.c, top.d), Face(points: top.a, top.d, bottom.d, bottom.a), Face(points: top.b, top.a, bottom.a, bottom.b), Face(points: top.c, top.b, bottom.b, bottom.c), Face(points: top.d, top.c, bottom.c, bottom.d), Face(points: bottom.a, bottom.d, bottom.c, bottom.b))
299 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:305:5: warning: 'internal' modifier is redundant for instance method declared in an internal extension
303 |
304 | internal extension Array where Element: Equatable {
305 | internal func removingDuplicates() -> [Element] {
| `- warning: 'internal' modifier is redundant for instance method declared in an internal extension
306 | var buffer: [Iterator.Element] = []
307 |
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:316:5: warning: 'internal' modifier is redundant for instance method declared in an internal extension
314 | return buffer
315 | }
316 | internal mutating func removeDuplicates() {
| `- warning: 'internal' modifier is redundant for instance method declared in an internal extension
317 | self = removingDuplicates()
318 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:321:5: warning: 'internal' modifier is redundant for instance method declared in an internal extension
319 | }
320 | internal extension Array where Element: Hashable {
321 | internal func removingDuplicates() -> [Element] {
| `- warning: 'internal' modifier is redundant for instance method declared in an internal extension
322 | var buffer: [Iterator.Element] = []
323 | var lookup = Set<Iterator.Element>()
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:334:5: warning: 'internal' modifier is redundant for instance method declared in an internal extension
332 | return buffer
333 | }
334 | internal mutating func removeDuplicates() {
| `- warning: 'internal' modifier is redundant for instance method declared in an internal extension
335 | self = removingDuplicates()
336 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:19:5: warning: 'public' modifier is redundant for static method declared in a public extension
17 | /// - children: Any other objects in the union.
18 | /// - Returns: A union of all passed OpenSCAD objects.
19 | public static func union(_ parent: OpenSCAD, _ children: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
20 | return union(parent, children)
21 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:48:5: warning: 'public' modifier is redundant for operator function declared in a public extension
46 | /// - rhs: The other object in the union.
47 | /// - Returns: A union of the two OpenSCAD objects.
48 | public static func + (lhs: OpenSCAD, rhs: OpenSCAD) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for operator function declared in a public extension
49 | return union(lhs, rhs)
50 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:56:5: warning: 'public' modifier is redundant for instance method declared in a public extension
54 | /// - Parameter subjects: The objects to be unioned with.
55 | /// - Returns: A union of the caller and all passed objects.
56 | public func unioned(with subjects: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
57 | return unioned(with: subjects)
58 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:62:5: warning: 'public' modifier is redundant for instance method declared in a public extension
60 | ///
61 | /// - Parameter subjects: The objects to union with.
62 | public mutating func union(with subjects: OpenSCAD...) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
63 | self = self.unioned(with: subjects)
64 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:95:5: warning: 'public' modifier is redundant for static method declared in a public extension
93 | /// - children: The objects to subtract from the parent.
94 | /// - Returns: A difference made by subtracting the children from the parents.
95 | public static func difference(_ parent: OpenSCAD, _ children: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
96 | return difference(parent, children)
97 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:124:5: warning: 'public' modifier is redundant for operator function declared in a public extension
122 | /// - rhs: The object to subtract from the base.
123 | /// - Returns: A difference made by subtracting the right object from the left.
124 | public static func - (lhs: OpenSCAD, rhs: OpenSCAD) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for operator function declared in a public extension
125 | return difference(lhs, rhs)
126 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:132:5: warning: 'public' modifier is redundant for instance method declared in a public extension
130 | /// - Parameter subjects: The object to be subtracted.
131 | /// - Returns: A difference formed by subtracting the subject from the caller.
132 | public func differenced(from subject: OpenSCAD) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
133 | return OpenSCAD.difference(subject, [self])
134 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:138:5: warning: 'public' modifier is redundant for instance method declared in a public extension
136 | ///
137 | /// - Parameter subject: The object to subtract from the caller.
138 | public mutating func difference(from subject: OpenSCAD) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
139 | self = self.differenced(from: subject)
140 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:145:5: warning: 'public' modifier is redundant for instance method declared in a public extension
143 | /// - Parameter subjects: The object to be subtracted.
144 | /// - Returns: A difference formed by subtracting the subject from the caller.
145 | public func subtracted(from subject: OpenSCAD) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
146 | return differenced(from: subject)
147 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:151:5: warning: 'public' modifier is redundant for instance method declared in a public extension
149 | ///
150 | /// - Parameter subject: The object to subtract from the caller.
151 | public mutating func subtract(from subject: OpenSCAD) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
152 | difference(from: subject)
153 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:177:5: warning: 'public' modifier is redundant for static method declared in a public extension
175 | /// - children: Any other objects in the intersection.
176 | /// - Returns: A union of all passed OpenSCAD objects.
177 | public static func intersection(_ parent: OpenSCAD, _ children: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
178 | return intersection(parent, children)
179 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:204:5: warning: 'public' modifier is redundant for instance method declared in a public extension
202 | /// - Parameter subjects: The objects to be intersected with.
203 | /// - Returns: An intersection of the caller and all passed objects.
204 | public func intersectioned(with subjects: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
205 | return intersectioned(with: subjects)
206 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:210:5: warning: 'public' modifier is redundant for instance method declared in a public extension
208 | ///
209 | /// - Parameter subjects: The objects to intersect with.
210 | public mutating func intersection(with subjects: OpenSCAD...) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
211 | self = self.intersectioned(with: subjects)
212 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/OpenSCAD.swift:34:12: warning: var 'OPENSCAD_CONFIG' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// The configuration for SwiftySCADKit.
34 | public var OPENSCAD_CONFIG: Config = Config()
| |- warning: var 'OPENSCAD_CONFIG' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'OPENSCAD_CONFIG' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'OPENSCAD_CONFIG' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | public func OPENSCAD_copyToClipboard(_ scad: OpenSCAD) {
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:21:5: warning: 'public' modifier is redundant for static method declared in a public extension
19 | /// - subjects: The subjects to scale.
20 | /// - Returns: A scaled version of the given subjects.
21 | public static func scale(_ dx: Double, _ dy: Double, _ dz: Double, subjects: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
22 | return scale(dx, dy, dz, subjects: subjects)
23 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:32:5: warning: 'public' modifier is redundant for static method declared in a public extension
30 | /// - dz: The `z` value to scale by.
31 | /// - Returns: A scaled version of the given subjects.
32 | public static func scale(_ subjects: OpenSCAD..., to dx: Double, _ dy: Double, _ dz: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
33 | return scale(dx, dy, dz, subjects: subjects)
34 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:63:5: warning: 'public' modifier is redundant for instance method declared in a public extension
61 | /// - dz: The `z` value to scale by.
62 | /// - Returns: A scaled version of the caller.
63 | public func scaled(to dx: Double, _ dy: Double, _ dz: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
64 | return OpenSCAD.scale(dx, dy, dz, subjects: [self])
65 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:72:5: warning: 'public' modifier is redundant for instance method declared in a public extension
70 | /// - dy: The `y` value to scale by.
71 | /// - dz: The `z` value to scale by.
72 | public mutating func scale(to dx: Double, _ dy: Double, _ dz: Double) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
73 | self = self.scaled(to: dx, dy, dz)
74 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:115:5: warning: 'public' modifier is redundant for static method declared in a public extension
113 | /// - subjects: The subjects to resize.
114 | /// - Returns: A resized version of the given subjects.
115 | public static func resize(_ newx: Double, _ newy: Double, _ newz: Double, subjects: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
116 | return resize(newx, newy, newz, subjects: subjects)
117 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:126:5: warning: 'public' modifier is redundant for static method declared in a public extension
124 | /// - newz: The new `z` length.
125 | /// - Returns: A resized version of the given subjects.
126 | public static func resize(_ subjects: OpenSCAD..., to newx: Double, _ newy: Double, _ newz: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
127 | return resize(newx, newy, newz, subjects: subjects)
128 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:157:5: warning: 'public' modifier is redundant for instance method declared in a public extension
155 | /// - newz: The new `z` length.
156 | /// - Returns: A resized version of the caller.
157 | public func resized(to newx: Double, _ newy: Double, _ newz: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
158 | return OpenSCAD.resize(newx, newy, newz, subjects: [self])
159 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:166:5: warning: 'public' modifier is redundant for instance method declared in a public extension
164 | /// - newy: The new `y` length.
165 | /// - newz: The new `z` length.
166 | public mutating func resize(to newx: Double, _ newy: Double, _ newz: Double) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
167 | self = self.resized(to: newx, newy, newz)
168 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:209:5: warning: 'public' modifier is redundant for static method declared in a public extension
207 | /// - subjects: The objects to rotate.
208 | /// - Returns: A rotated version of the given subjects.
209 | public static func rotate(_ dx: Double, _ dy: Double, _ dz: Double, subjects: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
210 | return rotate(dx, dy, dz, subjects: subjects)
211 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:220:5: warning: 'public' modifier is redundant for static method declared in a public extension
218 | /// - dz: The degrees to rotate around the `z` axis.
219 | /// - Returns: A rotated version of the given subjects.
220 | public static func rotate(_ subjects: OpenSCAD..., by dx: Double, _ dy: Double, _ dz: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
221 | return rotate(dx, dy, dz, subjects: subjects)
222 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:251:5: warning: 'public' modifier is redundant for instance method declared in a public extension
249 | /// - dz: The degrees to rotate around the `z` axis.
250 | /// - Returns: A rotated version of the caller.
251 | public func rotated(by dx: Double, _ dy: Double, _ dz: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
252 | return OpenSCAD.rotate(dx, dy, dz, subjects: [self])
253 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:260:5: warning: 'public' modifier is redundant for instance method declared in a public extension
258 | /// - dy: The degrees to rotate around the `y` axis.
259 | /// - dz: The degrees to rotate around the `z` axis.
260 | public mutating func rotate(by dx: Double, _ dy: Double, _ dz: Double) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
261 | self = self.rotated(by: dx, dy, dz)
262 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:303:5: warning: 'public' modifier is redundant for static method declared in a public extension
301 | /// - subjects: The objects to translate.
302 | /// - Returns: A translated version of the given subjects.
303 | public static func translate(_ dx: Double, _ dy: Double, _ dz: Double, subjects: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
304 | return translate(dx, dy, dz, subjects: subjects)
305 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:314:5: warning: 'public' modifier is redundant for static method declared in a public extension
312 | /// - dz: The amount to move along the `z` axis.
313 | /// - Returns: A translated version of the given subjects.
314 | public static func translate(_ subjects: OpenSCAD..., by dx: Double, _ dy: Double, _ dz: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
315 | return translate(dx, dy, dz, subjects: subjects)
316 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:345:5: warning: 'public' modifier is redundant for instance method declared in a public extension
343 | /// - dz: The amount to move along the `z` axis.
344 | /// - Returns: A translated version of the caller.
345 | public func translated(by dx: Double, _ dy: Double, _ dz: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
346 | return OpenSCAD.translate(dx, dy, dz, subjects: [self])
347 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:354:5: warning: 'public' modifier is redundant for instance method declared in a public extension
352 | /// - dy: The amount to move along the `y` axis.
353 | /// - dz: The amount to move along the `z` axis.
354 | public mutating func translate(by dx: Double, _ dy: Double, _ dz: Double) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
355 | self = self.translated(by: dx, dy, dz)
356 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:397:5: warning: 'public' modifier is redundant for static method declared in a public extension
395 | /// - subjects: The objects to mirror.
396 | /// - Returns: A mirrored version of the given objects.
397 | public static func mirror(_ dx: Double, _ dy: Double, _ dz: Double, subjects: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
398 | return mirror(dx, dy, dz, subjects: subjects)
399 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:408:5: warning: 'public' modifier is redundant for static method declared in a public extension
406 | /// - dz: The z component of the normal vector of the plane to mirror across.
407 | /// - Returns: A mirrored version of the given objects.
408 | public static func mirror(_ subjects: OpenSCAD..., across dx: Double, _ dy: Double, _ dz: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
409 | return mirror(dx, dy, dz, subjects: subjects)
410 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:439:5: warning: 'public' modifier is redundant for instance method declared in a public extension
437 | /// - dz: The z component of the normal vector of the plane to mirror across.
438 | /// - Returns: A mirrored version of the caller.
439 | public func mirrored(across dx: Double, _ dy: Double, _ dz: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
440 | return OpenSCAD.mirror(dx, dy, dz, subjects: [self])
441 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:448:5: warning: 'public' modifier is redundant for instance method declared in a public extension
446 | /// - dy: The y component of the normal vector of the plane to mirror across.
447 | /// - dz: The z component of the normal vector of the plane to mirror across.
448 | public mutating func mirror(across dx: Double, _ dy: Double, _ dz: Double) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
449 | self = self.mirrored(across: dx, dy, dz)
450 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:492:5: warning: 'public' modifier is redundant for static method declared in a public extension
490 | /// - subjects: The objects to color
491 | /// - Returns: A colored version of the given objects.
492 | public static func color(_ r: Double, _ g: Double, _ b: Double, _ a: Double, subjects: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
493 | return color(r, g, b, a, subjects: subjects)
494 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:504:5: warning: 'public' modifier is redundant for static method declared in a public extension
502 | /// - a: The alpha component of the color.
503 | /// - Returns: A colored version of the given objects.
504 | public static func color(_ subjects: OpenSCAD..., to r: Double, _ g: Double, _ b: Double, _ a: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
505 | return color(r, g, b, a, subjects: subjects)
506 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:537:5: warning: 'public' modifier is redundant for instance method declared in a public extension
535 | /// - a: The alpha component of the color.
536 | /// - Returns: A colored version of the caller.
537 | public func colored(to r: Double, _ g: Double, _ b: Double, _ a: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
538 | return OpenSCAD.color(r, g, b, a, subjects: [self])
539 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:547:5: warning: 'public' modifier is redundant for instance method declared in a public extension
545 | /// - b: The blue component of the color.
546 | /// - a: The alpha component of the color.
547 | public mutating func color(to r: Double, _ g: Double, _ b: Double, _ a: Double) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
548 | self = self.colored(to: r, g, b, a)
549 | }
[4/8] Compiling SwiftySCADKit Import.swift
[5/8] Compiling SwiftySCADKit BooleanOperators.swift
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:19:5: warning: 'public' modifier is redundant for static method declared in a public extension
17 | /// - children: Any other objects in the union.
18 | /// - Returns: A union of all passed OpenSCAD objects.
19 | public static func union(_ parent: OpenSCAD, _ children: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
20 | return union(parent, children)
21 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:48:5: warning: 'public' modifier is redundant for operator function declared in a public extension
46 | /// - rhs: The other object in the union.
47 | /// - Returns: A union of the two OpenSCAD objects.
48 | public static func + (lhs: OpenSCAD, rhs: OpenSCAD) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for operator function declared in a public extension
49 | return union(lhs, rhs)
50 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:56:5: warning: 'public' modifier is redundant for instance method declared in a public extension
54 | /// - Parameter subjects: The objects to be unioned with.
55 | /// - Returns: A union of the caller and all passed objects.
56 | public func unioned(with subjects: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
57 | return unioned(with: subjects)
58 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:62:5: warning: 'public' modifier is redundant for instance method declared in a public extension
60 | ///
61 | /// - Parameter subjects: The objects to union with.
62 | public mutating func union(with subjects: OpenSCAD...) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
63 | self = self.unioned(with: subjects)
64 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:95:5: warning: 'public' modifier is redundant for static method declared in a public extension
93 | /// - children: The objects to subtract from the parent.
94 | /// - Returns: A difference made by subtracting the children from the parents.
95 | public static func difference(_ parent: OpenSCAD, _ children: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
96 | return difference(parent, children)
97 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:124:5: warning: 'public' modifier is redundant for operator function declared in a public extension
122 | /// - rhs: The object to subtract from the base.
123 | /// - Returns: A difference made by subtracting the right object from the left.
124 | public static func - (lhs: OpenSCAD, rhs: OpenSCAD) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for operator function declared in a public extension
125 | return difference(lhs, rhs)
126 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:132:5: warning: 'public' modifier is redundant for instance method declared in a public extension
130 | /// - Parameter subjects: The object to be subtracted.
131 | /// - Returns: A difference formed by subtracting the subject from the caller.
132 | public func differenced(from subject: OpenSCAD) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
133 | return OpenSCAD.difference(subject, [self])
134 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:138:5: warning: 'public' modifier is redundant for instance method declared in a public extension
136 | ///
137 | /// - Parameter subject: The object to subtract from the caller.
138 | public mutating func difference(from subject: OpenSCAD) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
139 | self = self.differenced(from: subject)
140 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:145:5: warning: 'public' modifier is redundant for instance method declared in a public extension
143 | /// - Parameter subjects: The object to be subtracted.
144 | /// - Returns: A difference formed by subtracting the subject from the caller.
145 | public func subtracted(from subject: OpenSCAD) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
146 | return differenced(from: subject)
147 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:151:5: warning: 'public' modifier is redundant for instance method declared in a public extension
149 | ///
150 | /// - Parameter subject: The object to subtract from the caller.
151 | public mutating func subtract(from subject: OpenSCAD) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
152 | difference(from: subject)
153 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:177:5: warning: 'public' modifier is redundant for static method declared in a public extension
175 | /// - children: Any other objects in the intersection.
176 | /// - Returns: A union of all passed OpenSCAD objects.
177 | public static func intersection(_ parent: OpenSCAD, _ children: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
178 | return intersection(parent, children)
179 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:204:5: warning: 'public' modifier is redundant for instance method declared in a public extension
202 | /// - Parameter subjects: The objects to be intersected with.
203 | /// - Returns: An intersection of the caller and all passed objects.
204 | public func intersectioned(with subjects: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
205 | return intersectioned(with: subjects)
206 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BooleanOperators.swift:210:5: warning: 'public' modifier is redundant for instance method declared in a public extension
208 | ///
209 | /// - Parameter subjects: The objects to intersect with.
210 | public mutating func intersection(with subjects: OpenSCAD...) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
211 | self = self.intersectioned(with: subjects)
212 | }
[6/8] Compiling SwiftySCADKit BasicShapes.swift
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:19:5: warning: 'public' modifier is redundant for static method declared in a public extension
17 | /// - centered: Whether or not the cube should be centered on the origin.
18 | /// - Returns: A cube with the specified side length.
19 | public static func cube(withSideLength sideLength: Double, centered: Bool) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
20 | return OpenSCAD("cube([\(sideLength), \(sideLength), \(sideLength)], \(centered));")
21 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:30:5: warning: 'public' modifier is redundant for static method declared in a public extension
28 | /// - centered: Whether or not this object should be centered on the origin.
29 | /// - Returns: A 'cube' (rectangular prism) with the specified dimensions.
30 | public static func cube(height: Double, width: Double, depth: Double, centered: Bool) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
31 | return OpenSCAD("cube([\(width), \(depth), \(height)], \(centered));")
32 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:41:5: warning: 'public' modifier is redundant for static method declared in a public extension
39 | /// - centered: Whether or not this object should be centered on the origin.
40 | /// - Returns: A rectangular prism with the specified dimensions.
41 | public static func rectangularPrism(height: Double, width: Double, depth: Double, centered: Bool) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
42 | return cube(height:height, width:width, depth: depth, centered: centered)
43 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:91:5: warning: 'public' modifier is redundant for static method declared in a public extension
89 | /// - Parameter radius: The radius of the sphere.
90 | /// - Returns: A sphere with the specified radius.
91 | public static func sphere(_ radius: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
92 | return OpenSCAD("sphere(\(radius), $fn=\(OPENSCAD_CONFIG.SPHERE_RESOLUTION));")
93 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:124:5: warning: 'public' modifier is redundant for static method declared in a public extension
122 | /// - centered: Whether of not the cylinder is centered on the origin.
123 | /// - Returns: A cylinder with the specified dimensions.
124 | public static func cylinder(height: Double, topRadius: Double, bottomRadius: Double, centered: Bool) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
125 | return OpenSCAD("cylinder($fn = \(OPENSCAD_CONFIG.SPHERE_RESOLUTION), \(height), \(bottomRadius), \(topRadius), \(centered));")
126 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:153:5: warning: 'public' modifier is redundant for struct declared in a public extension
151 | public extension OpenSCAD {
152 | /// A representation of a point in 3D space.
153 | public struct Point: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
154 | /// The x value of the point.
155 | public var x: Double
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:182:5: warning: 'public' modifier is redundant for struct declared in a public extension
180 | }
181 | /// A representation of a face of a polyhedron.
182 | public struct Face: Hashable {
| `- warning: 'public' modifier is redundant for struct declared in a public extension
183 | public var points: [Point]
184 | public init(points: [Point]) {
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:195:5: warning: 'public' modifier is redundant for static method declared in a public extension
193 | /// - Parameter faces: The faces of the polyhedron.
194 | /// - Returns: A polyhedron with the given faces.
195 | public static func polyhedron(faces: [Face]) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
196 | var points: [Point] = []
197 | for face in faces {
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:228:5: warning: 'public' modifier is redundant for static method declared in a public extension
226 | /// - Parameter faces: The faces of the polyhedron.
227 | /// - Returns: A polyhedron with the given faces.
228 | public static func polyhedron(faces: Face...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
229 | return polyhedron(faces: faces)
230 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:265:5: warning: 'public' modifier is redundant for static method declared in a public extension
263 | /// - top: The top three points.
264 | /// - Returns: A triangular prism created from the given points.
265 | public static func triangularPrism(bottom: (a: Point, b: Point, c: Point), top: (a: Point, b: Point, c: Point)) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
266 | return polyhedron(faces: Face(points: [bottom.a, bottom.c, bottom.b]), Face(points: [top.a, top.b, top.c]), Face(points: [top.b, top.a, bottom.a, bottom.b]), Face(points: [top.a, top.c, bottom.c, bottom.a]), Face(points: [top.c, top.b, bottom.b, bottom.c]))
267 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:297:5: warning: 'public' modifier is redundant for static method declared in a public extension
295 | /// - top: The top four points.
296 | /// - Returns: A hexahedron created from the given points.
297 | public static func hexahedron(bottom: (a: Point, b: Point, c: Point, d: Point), top: (a: Point, b: Point, c: Point, d: Point)) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
298 | return polyhedron(faces: Face(points: top.a, top.b, top.c, top.d), Face(points: top.a, top.d, bottom.d, bottom.a), Face(points: top.b, top.a, bottom.a, bottom.b), Face(points: top.c, top.b, bottom.b, bottom.c), Face(points: top.d, top.c, bottom.c, bottom.d), Face(points: bottom.a, bottom.d, bottom.c, bottom.b))
299 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:305:5: warning: 'internal' modifier is redundant for instance method declared in an internal extension
303 |
304 | internal extension Array where Element: Equatable {
305 | internal func removingDuplicates() -> [Element] {
| `- warning: 'internal' modifier is redundant for instance method declared in an internal extension
306 | var buffer: [Iterator.Element] = []
307 |
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:316:5: warning: 'internal' modifier is redundant for instance method declared in an internal extension
314 | return buffer
315 | }
316 | internal mutating func removeDuplicates() {
| `- warning: 'internal' modifier is redundant for instance method declared in an internal extension
317 | self = removingDuplicates()
318 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:321:5: warning: 'internal' modifier is redundant for instance method declared in an internal extension
319 | }
320 | internal extension Array where Element: Hashable {
321 | internal func removingDuplicates() -> [Element] {
| `- warning: 'internal' modifier is redundant for instance method declared in an internal extension
322 | var buffer: [Iterator.Element] = []
323 | var lookup = Set<Iterator.Element>()
/host/spi-builder-workspace/Sources/SwiftySCADKit/BasicShapes.swift:334:5: warning: 'internal' modifier is redundant for instance method declared in an internal extension
332 | return buffer
333 | }
334 | internal mutating func removeDuplicates() {
| `- warning: 'internal' modifier is redundant for instance method declared in an internal extension
335 | self = removingDuplicates()
336 | }
[7/8] Compiling SwiftySCADKit Transformations.swift
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:21:5: warning: 'public' modifier is redundant for static method declared in a public extension
19 | /// - subjects: The subjects to scale.
20 | /// - Returns: A scaled version of the given subjects.
21 | public static func scale(_ dx: Double, _ dy: Double, _ dz: Double, subjects: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
22 | return scale(dx, dy, dz, subjects: subjects)
23 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:32:5: warning: 'public' modifier is redundant for static method declared in a public extension
30 | /// - dz: The `z` value to scale by.
31 | /// - Returns: A scaled version of the given subjects.
32 | public static func scale(_ subjects: OpenSCAD..., to dx: Double, _ dy: Double, _ dz: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
33 | return scale(dx, dy, dz, subjects: subjects)
34 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:63:5: warning: 'public' modifier is redundant for instance method declared in a public extension
61 | /// - dz: The `z` value to scale by.
62 | /// - Returns: A scaled version of the caller.
63 | public func scaled(to dx: Double, _ dy: Double, _ dz: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
64 | return OpenSCAD.scale(dx, dy, dz, subjects: [self])
65 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:72:5: warning: 'public' modifier is redundant for instance method declared in a public extension
70 | /// - dy: The `y` value to scale by.
71 | /// - dz: The `z` value to scale by.
72 | public mutating func scale(to dx: Double, _ dy: Double, _ dz: Double) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
73 | self = self.scaled(to: dx, dy, dz)
74 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:115:5: warning: 'public' modifier is redundant for static method declared in a public extension
113 | /// - subjects: The subjects to resize.
114 | /// - Returns: A resized version of the given subjects.
115 | public static func resize(_ newx: Double, _ newy: Double, _ newz: Double, subjects: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
116 | return resize(newx, newy, newz, subjects: subjects)
117 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:126:5: warning: 'public' modifier is redundant for static method declared in a public extension
124 | /// - newz: The new `z` length.
125 | /// - Returns: A resized version of the given subjects.
126 | public static func resize(_ subjects: OpenSCAD..., to newx: Double, _ newy: Double, _ newz: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
127 | return resize(newx, newy, newz, subjects: subjects)
128 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:157:5: warning: 'public' modifier is redundant for instance method declared in a public extension
155 | /// - newz: The new `z` length.
156 | /// - Returns: A resized version of the caller.
157 | public func resized(to newx: Double, _ newy: Double, _ newz: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
158 | return OpenSCAD.resize(newx, newy, newz, subjects: [self])
159 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:166:5: warning: 'public' modifier is redundant for instance method declared in a public extension
164 | /// - newy: The new `y` length.
165 | /// - newz: The new `z` length.
166 | public mutating func resize(to newx: Double, _ newy: Double, _ newz: Double) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
167 | self = self.resized(to: newx, newy, newz)
168 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:209:5: warning: 'public' modifier is redundant for static method declared in a public extension
207 | /// - subjects: The objects to rotate.
208 | /// - Returns: A rotated version of the given subjects.
209 | public static func rotate(_ dx: Double, _ dy: Double, _ dz: Double, subjects: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
210 | return rotate(dx, dy, dz, subjects: subjects)
211 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:220:5: warning: 'public' modifier is redundant for static method declared in a public extension
218 | /// - dz: The degrees to rotate around the `z` axis.
219 | /// - Returns: A rotated version of the given subjects.
220 | public static func rotate(_ subjects: OpenSCAD..., by dx: Double, _ dy: Double, _ dz: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
221 | return rotate(dx, dy, dz, subjects: subjects)
222 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:251:5: warning: 'public' modifier is redundant for instance method declared in a public extension
249 | /// - dz: The degrees to rotate around the `z` axis.
250 | /// - Returns: A rotated version of the caller.
251 | public func rotated(by dx: Double, _ dy: Double, _ dz: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
252 | return OpenSCAD.rotate(dx, dy, dz, subjects: [self])
253 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:260:5: warning: 'public' modifier is redundant for instance method declared in a public extension
258 | /// - dy: The degrees to rotate around the `y` axis.
259 | /// - dz: The degrees to rotate around the `z` axis.
260 | public mutating func rotate(by dx: Double, _ dy: Double, _ dz: Double) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
261 | self = self.rotated(by: dx, dy, dz)
262 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:303:5: warning: 'public' modifier is redundant for static method declared in a public extension
301 | /// - subjects: The objects to translate.
302 | /// - Returns: A translated version of the given subjects.
303 | public static func translate(_ dx: Double, _ dy: Double, _ dz: Double, subjects: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
304 | return translate(dx, dy, dz, subjects: subjects)
305 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:314:5: warning: 'public' modifier is redundant for static method declared in a public extension
312 | /// - dz: The amount to move along the `z` axis.
313 | /// - Returns: A translated version of the given subjects.
314 | public static func translate(_ subjects: OpenSCAD..., by dx: Double, _ dy: Double, _ dz: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
315 | return translate(dx, dy, dz, subjects: subjects)
316 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:345:5: warning: 'public' modifier is redundant for instance method declared in a public extension
343 | /// - dz: The amount to move along the `z` axis.
344 | /// - Returns: A translated version of the caller.
345 | public func translated(by dx: Double, _ dy: Double, _ dz: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
346 | return OpenSCAD.translate(dx, dy, dz, subjects: [self])
347 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:354:5: warning: 'public' modifier is redundant for instance method declared in a public extension
352 | /// - dy: The amount to move along the `y` axis.
353 | /// - dz: The amount to move along the `z` axis.
354 | public mutating func translate(by dx: Double, _ dy: Double, _ dz: Double) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
355 | self = self.translated(by: dx, dy, dz)
356 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:397:5: warning: 'public' modifier is redundant for static method declared in a public extension
395 | /// - subjects: The objects to mirror.
396 | /// - Returns: A mirrored version of the given objects.
397 | public static func mirror(_ dx: Double, _ dy: Double, _ dz: Double, subjects: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
398 | return mirror(dx, dy, dz, subjects: subjects)
399 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:408:5: warning: 'public' modifier is redundant for static method declared in a public extension
406 | /// - dz: The z component of the normal vector of the plane to mirror across.
407 | /// - Returns: A mirrored version of the given objects.
408 | public static func mirror(_ subjects: OpenSCAD..., across dx: Double, _ dy: Double, _ dz: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
409 | return mirror(dx, dy, dz, subjects: subjects)
410 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:439:5: warning: 'public' modifier is redundant for instance method declared in a public extension
437 | /// - dz: The z component of the normal vector of the plane to mirror across.
438 | /// - Returns: A mirrored version of the caller.
439 | public func mirrored(across dx: Double, _ dy: Double, _ dz: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
440 | return OpenSCAD.mirror(dx, dy, dz, subjects: [self])
441 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:448:5: warning: 'public' modifier is redundant for instance method declared in a public extension
446 | /// - dy: The y component of the normal vector of the plane to mirror across.
447 | /// - dz: The z component of the normal vector of the plane to mirror across.
448 | public mutating func mirror(across dx: Double, _ dy: Double, _ dz: Double) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
449 | self = self.mirrored(across: dx, dy, dz)
450 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:492:5: warning: 'public' modifier is redundant for static method declared in a public extension
490 | /// - subjects: The objects to color
491 | /// - Returns: A colored version of the given objects.
492 | public static func color(_ r: Double, _ g: Double, _ b: Double, _ a: Double, subjects: OpenSCAD...) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
493 | return color(r, g, b, a, subjects: subjects)
494 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:504:5: warning: 'public' modifier is redundant for static method declared in a public extension
502 | /// - a: The alpha component of the color.
503 | /// - Returns: A colored version of the given objects.
504 | public static func color(_ subjects: OpenSCAD..., to r: Double, _ g: Double, _ b: Double, _ a: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
505 | return color(r, g, b, a, subjects: subjects)
506 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:537:5: warning: 'public' modifier is redundant for instance method declared in a public extension
535 | /// - a: The alpha component of the color.
536 | /// - Returns: A colored version of the caller.
537 | public func colored(to r: Double, _ g: Double, _ b: Double, _ a: Double) -> OpenSCAD {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
538 | return OpenSCAD.color(r, g, b, a, subjects: [self])
539 | }
/host/spi-builder-workspace/Sources/SwiftySCADKit/Transformations.swift:547:5: warning: 'public' modifier is redundant for instance method declared in a public extension
545 | /// - b: The blue component of the color.
546 | /// - a: The alpha component of the color.
547 | public mutating func color(to r: Double, _ g: Double, _ b: Double, _ a: Double) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
548 | self = self.colored(to: r, g, b, a)
549 | }
[8/8] Compiling SwiftySCADKit OpenSCAD.swift
/host/spi-builder-workspace/Sources/SwiftySCADKit/OpenSCAD.swift:34:12: warning: var 'OPENSCAD_CONFIG' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// The configuration for SwiftySCADKit.
34 | public var OPENSCAD_CONFIG: Config = Config()
| |- warning: var 'OPENSCAD_CONFIG' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'OPENSCAD_CONFIG' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'OPENSCAD_CONFIG' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | public func OPENSCAD_copyToClipboard(_ scad: OpenSCAD) {
/host/spi-builder-workspace/Sources/SwiftySCADKit/OpenSCAD.swift:39:10: warning: 'launchPath' is deprecated: renamed to 'executableURL'
37 | let pipe = Pipe()
38 | let echo = Process()
39 | echo.launchPath = "/bin/echo"
| |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
| `- note: use 'executableURL' instead
40 | echo.arguments = ["-n", "\(scad.SCADValue)"]
41 | echo.standardOutput = pipe
/host/spi-builder-workspace/Sources/SwiftySCADKit/OpenSCAD.swift:42:10: warning: 'launch()' is deprecated: renamed to 'run'
40 | echo.arguments = ["-n", "\(scad.SCADValue)"]
41 | echo.standardOutput = pipe
42 | echo.launch()
| |- warning: 'launch()' is deprecated: renamed to 'run'
| `- note: use 'run' instead
43 | let pbcopy = Process()
44 | pbcopy.launchPath = "/usr/bin/pbcopy"
/host/spi-builder-workspace/Sources/SwiftySCADKit/OpenSCAD.swift:44:12: warning: 'launchPath' is deprecated: renamed to 'executableURL'
42 | echo.launch()
43 | let pbcopy = Process()
44 | pbcopy.launchPath = "/usr/bin/pbcopy"
| |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
| `- note: use 'executableURL' instead
45 | pbcopy.standardInput = pipe
46 | pbcopy.launch()
/host/spi-builder-workspace/Sources/SwiftySCADKit/OpenSCAD.swift:46:12: warning: 'launch()' is deprecated: renamed to 'run'
44 | pbcopy.launchPath = "/usr/bin/pbcopy"
45 | pbcopy.standardInput = pipe
46 | pbcopy.launch()
| |- warning: 'launch()' is deprecated: renamed to 'run'
| `- note: use 'run' instead
47 | pbcopy.waitUntilExit()
48 | }
Build complete! (8.27s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftySCADKit",
"name" : "SwiftySCADKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftySCADKit",
"targets" : [
"SwiftySCADKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftySCADKitTests",
"module_type" : "SwiftTarget",
"name" : "SwiftySCADKitTests",
"path" : "Tests/SwiftySCADKitTests",
"sources" : [
"SwiftySCADKitTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"SwiftySCADKit"
],
"type" : "test"
},
{
"c99name" : "SwiftySCADKit",
"module_type" : "SwiftTarget",
"name" : "SwiftySCADKit",
"path" : "Sources/SwiftySCADKit",
"product_memberships" : [
"SwiftySCADKit"
],
"sources" : [
"BasicShapes.swift",
"BooleanOperators.swift",
"Import.swift",
"OpenSCAD.swift",
"Transformations.swift"
],
"type" : "library"
}
],
"tools_version" : "4.2"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.