This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Markup with Swift 6.0 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/gonzalezreal/Markup.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/gonzalezreal/Markup
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 88beb18 Update README.md
Cloned https://github.com/gonzalezreal/Markup.git
Revision (git rev-parse @):
88beb1814147918b458c68296558282a099ae77d
SUCCESS checkout https://github.com/gonzalezreal/Markup.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/gonzalezreal/Markup.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/8] Compiling Markup MarkupToken.swift
[4/8] Compiling Markup MarkupParser.swift
[5/8] Compiling Markup MarkupNode.swift
[6/8] Compiling Markup MarkupTokenizer.swift
/host/spi-builder-workspace/Sources/Markup/MarkupTokenizer.swift:10:13: warning: static property 'delimiters' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
  8 |
  9 | private extension CharacterSet {
 10 | 	static let delimiters = CharacterSet(charactersIn: "*_~")
    |             `- warning: static property 'delimiters' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
 11 | 	static let whitespaceAndPunctuation = CharacterSet.whitespacesAndNewlines
 12 | 		.union(CharacterSet.punctuationCharacters)
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
/host/spi-builder-workspace/Sources/Markup/MarkupTokenizer.swift:7:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  5 | //
  6 |
  7 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  8 |
  9 | private extension CharacterSet {
 10 | 	static let delimiters = CharacterSet(charactersIn: "*_~")
    |             |- note: annotate 'delimiters' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 11 | 	static let whitespaceAndPunctuation = CharacterSet.whitespacesAndNewlines
 12 | 		.union(CharacterSet.punctuationCharacters)
/host/spi-builder-workspace/Sources/Markup/MarkupTokenizer.swift:11:13: warning: static property 'whitespaceAndPunctuation' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
  9 | private extension CharacterSet {
 10 | 	static let delimiters = CharacterSet(charactersIn: "*_~")
 11 | 	static let whitespaceAndPunctuation = CharacterSet.whitespacesAndNewlines
    |             |- warning: static property 'whitespaceAndPunctuation' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'whitespaceAndPunctuation' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 12 | 		.union(CharacterSet.punctuationCharacters)
 13 | 		.union(CharacterSet(charactersIn: "~"))
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
[7/8] Emitting module Markup
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:16:24: error: cannot find type 'Font' in scope
 14 |
 15 | public final class MarkupRenderer {
 16 | 	private let baseFont: Font
    |                        `- error: cannot find type 'Font' in scope
 17 |
 18 | 	public init(baseFont: Font) {
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:18:24: error: cannot find type 'Font' in scope
 16 | 	private let baseFont: Font
 17 |
 18 | 	public init(baseFont: Font) {
    |                        `- error: cannot find type 'Font' in scope
 19 | 		self.baseFont = baseFont
 20 | 	}
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:22:38: error: cannot find type 'NSAttributedString' in scope
 20 | 	}
 21 |
 22 | 	public func render(text: String) -> NSAttributedString {
    |                                      `- error: cannot find type 'NSAttributedString' in scope
 23 | 		let elements = MarkupParser.parse(text: text)
 24 | 		let attributes = [NSAttributedString.Key.font: baseFont]
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:31:75: error: cannot find type 'NSAttributedString' in scope
 29 |
 30 | private extension MarkupNode {
 31 | 	func render(withAttributes attributes: [NSAttributedString.Key: Any]) -> NSAttributedString {
    |                                                                           `- error: cannot find type 'NSAttributedString' in scope
 32 | 		guard let currentFont = attributes[NSAttributedString.Key.font] as? Font else {
 33 | 			fatalError("Missing font attribute in \(attributes)")
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:31:42: error: cannot find type 'NSAttributedString' in scope
 29 |
 30 | private extension MarkupNode {
 31 | 	func render(withAttributes attributes: [NSAttributedString.Key: Any]) -> NSAttributedString {
    |                                          `- error: cannot find type 'NSAttributedString' in scope
 32 | 		guard let currentFont = attributes[NSAttributedString.Key.font] as? Font else {
 33 | 			fatalError("Missing font attribute in \(attributes)")
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:59:32: error: cannot find type 'NSAttributedString' in scope
 57 | }
 58 |
 59 | extension Array where Element: NSAttributedString {
    |                                `- error: cannot find type 'NSAttributedString' in scope
 60 | 	func joined() -> NSAttributedString {
 61 | 		let result = NSMutableAttributedString()
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:60:19: error: cannot find type 'NSAttributedString' in scope
 58 |
 59 | extension Array where Element: NSAttributedString {
 60 | 	func joined() -> NSAttributedString {
    |                   `- error: cannot find type 'NSAttributedString' in scope
 61 | 		let result = NSMutableAttributedString()
 62 | 		for element in self {
/host/spi-builder-workspace/Sources/Markup/MarkupTokenizer.swift:10:13: warning: static property 'delimiters' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
  8 |
  9 | private extension CharacterSet {
 10 | 	static let delimiters = CharacterSet(charactersIn: "*_~")
    |             `- warning: static property 'delimiters' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
 11 | 	static let whitespaceAndPunctuation = CharacterSet.whitespacesAndNewlines
 12 | 		.union(CharacterSet.punctuationCharacters)
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
/host/spi-builder-workspace/Sources/Markup/MarkupTokenizer.swift:7:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  5 | //
  6 |
  7 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  8 |
  9 | private extension CharacterSet {
 10 | 	static let delimiters = CharacterSet(charactersIn: "*_~")
    |             |- note: annotate 'delimiters' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 11 | 	static let whitespaceAndPunctuation = CharacterSet.whitespacesAndNewlines
 12 | 		.union(CharacterSet.punctuationCharacters)
/host/spi-builder-workspace/Sources/Markup/MarkupTokenizer.swift:11:13: warning: static property 'whitespaceAndPunctuation' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
  9 | private extension CharacterSet {
 10 | 	static let delimiters = CharacterSet(charactersIn: "*_~")
 11 | 	static let whitespaceAndPunctuation = CharacterSet.whitespacesAndNewlines
    |             |- warning: static property 'whitespaceAndPunctuation' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'whitespaceAndPunctuation' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 12 | 		.union(CharacterSet.punctuationCharacters)
 13 | 		.union(CharacterSet(charactersIn: "~"))
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
[8/8] Compiling Markup MarkupRenderer.swift
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:16:24: error: cannot find type 'Font' in scope
 14 |
 15 | public final class MarkupRenderer {
 16 | 	private let baseFont: Font
    |                        `- error: cannot find type 'Font' in scope
 17 |
 18 | 	public init(baseFont: Font) {
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:18:24: error: cannot find type 'Font' in scope
 16 | 	private let baseFont: Font
 17 |
 18 | 	public init(baseFont: Font) {
    |                        `- error: cannot find type 'Font' in scope
 19 | 		self.baseFont = baseFont
 20 | 	}
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:22:38: error: cannot find type 'NSAttributedString' in scope
 20 | 	}
 21 |
 22 | 	public func render(text: String) -> NSAttributedString {
    |                                      `- error: cannot find type 'NSAttributedString' in scope
 23 | 		let elements = MarkupParser.parse(text: text)
 24 | 		let attributes = [NSAttributedString.Key.font: baseFont]
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:31:75: error: cannot find type 'NSAttributedString' in scope
 29 |
 30 | private extension MarkupNode {
 31 | 	func render(withAttributes attributes: [NSAttributedString.Key: Any]) -> NSAttributedString {
    |                                                                           `- error: cannot find type 'NSAttributedString' in scope
 32 | 		guard let currentFont = attributes[NSAttributedString.Key.font] as? Font else {
 33 | 			fatalError("Missing font attribute in \(attributes)")
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:31:42: error: cannot find type 'NSAttributedString' in scope
 29 |
 30 | private extension MarkupNode {
 31 | 	func render(withAttributes attributes: [NSAttributedString.Key: Any]) -> NSAttributedString {
    |                                          `- error: cannot find type 'NSAttributedString' in scope
 32 | 		guard let currentFont = attributes[NSAttributedString.Key.font] as? Font else {
 33 | 			fatalError("Missing font attribute in \(attributes)")
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:59:32: error: cannot find type 'NSAttributedString' in scope
 57 | }
 58 |
 59 | extension Array where Element: NSAttributedString {
    |                                `- error: cannot find type 'NSAttributedString' in scope
 60 | 	func joined() -> NSAttributedString {
 61 | 		let result = NSMutableAttributedString()
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:60:19: error: cannot find type 'NSAttributedString' in scope
 58 |
 59 | extension Array where Element: NSAttributedString {
 60 | 	func joined() -> NSAttributedString {
    |                   `- error: cannot find type 'NSAttributedString' in scope
 61 | 		let result = NSMutableAttributedString()
 62 | 		for element in self {
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:24:21: error: cannot find 'NSAttributedString' in scope
 22 | 	public func render(text: String) -> NSAttributedString {
 23 | 		let elements = MarkupParser.parse(text: text)
 24 | 		let attributes = [NSAttributedString.Key.font: baseFont]
    |                     `- error: cannot find 'NSAttributedString' in scope
 25 |
 26 | 		return elements.map { $0.render(withAttributes: attributes) }.joined()
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:32:38: error: cannot find 'NSAttributedString' in scope
 30 | private extension MarkupNode {
 31 | 	func render(withAttributes attributes: [NSAttributedString.Key: Any]) -> NSAttributedString {
 32 | 		guard let currentFont = attributes[NSAttributedString.Key.font] as? Font else {
    |                                      `- error: cannot find 'NSAttributedString' in scope
 33 | 			fatalError("Missing font attribute in \(attributes)")
 34 | 		}
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:32:71: error: cannot find type 'Font' in scope
 30 | private extension MarkupNode {
 31 | 	func render(withAttributes attributes: [NSAttributedString.Key: Any]) -> NSAttributedString {
 32 | 		guard let currentFont = attributes[NSAttributedString.Key.font] as? Font else {
    |                                                                       `- error: cannot find type 'Font' in scope
 33 | 			fatalError("Missing font attribute in \(attributes)")
 34 | 		}
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:42:18: error: cannot find 'NSAttributedString' in scope
 40 | 		case .strong(let children):
 41 | 			var newAttributes = attributes
 42 | 			newAttributes[NSAttributedString.Key.font] = currentFont.boldFont()
    |                  `- error: cannot find 'NSAttributedString' in scope
 43 | 			return children.map { $0.render(withAttributes: newAttributes) }.joined()
 44 |
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:47:18: error: cannot find 'NSAttributedString' in scope
 45 | 		case .emphasis(let children):
 46 | 			var newAttributes = attributes
 47 | 			newAttributes[NSAttributedString.Key.font] = currentFont.italicFont()
    |                  `- error: cannot find 'NSAttributedString' in scope
 48 | 			return children.map { $0.render(withAttributes: newAttributes) }.joined()
 49 |
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:52:18: error: cannot find 'NSAttributedString' in scope
 50 | 		case .delete(let children):
 51 | 			var newAttributes = attributes
 52 | 			newAttributes[NSAttributedString.Key.strikethroughStyle] = NSUnderlineStyle.single.rawValue
    |                  `- error: cannot find 'NSAttributedString' in scope
 53 | 			newAttributes[NSAttributedString.Key.baselineOffset] = 0
 54 | 			return children.map { $0.render(withAttributes: newAttributes) }.joined()
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:52:63: error: cannot find 'NSUnderlineStyle' in scope
 50 | 		case .delete(let children):
 51 | 			var newAttributes = attributes
 52 | 			newAttributes[NSAttributedString.Key.strikethroughStyle] = NSUnderlineStyle.single.rawValue
    |                                                               `- error: cannot find 'NSUnderlineStyle' in scope
 53 | 			newAttributes[NSAttributedString.Key.baselineOffset] = 0
 54 | 			return children.map { $0.render(withAttributes: newAttributes) }.joined()
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:53:18: error: cannot find 'NSAttributedString' in scope
 51 | 			var newAttributes = attributes
 52 | 			newAttributes[NSAttributedString.Key.strikethroughStyle] = NSUnderlineStyle.single.rawValue
 53 | 			newAttributes[NSAttributedString.Key.baselineOffset] = 0
    |                  `- error: cannot find 'NSAttributedString' in scope
 54 | 			return children.map { $0.render(withAttributes: newAttributes) }.joined()
 55 | 		}
/host/spi-builder-workspace/Sources/Markup/MarkupRenderer.swift:61:16: error: cannot find 'NSMutableAttributedString' in scope
 59 | extension Array where Element: NSAttributedString {
 60 | 	func joined() -> NSAttributedString {
 61 | 		let result = NSMutableAttributedString()
    |                `- error: cannot find 'NSMutableAttributedString' in scope
 62 | 		for element in self {
 63 | 			result.append(element)
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.