Unable to install with mint on macOS Monterery
swift --version swift-driver version: 1.26.9 Apple Swift version 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1) Target: x86_64-apple-macosx12.0
.build/checkouts/PathKit/Sources/PathKit.swift:583:12: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
`mint install jakeheis/Ice --verbose 🌱 Finding latest version of Ice 🌱 Cloning Ice 0.8.3 Cloning into 'github.com_jakeheis_Ice'... remote: Enumerating objects: 171, done. remote: Counting objects: 100% (171/171), done. remote: Compressing objects: 100% (150/150), done. remote: Total 171 (delta 20), reused 64 (delta 5), pack-reused 0 Receiving objects: 100% (171/171), 105.08 KiB | 1.72 MiB/s, done. Resolving deltas: 100% (20/20), done. Note: switching to '8e0bb5e8bc9b11b33dc249d6caee5ded975d74b5'.
You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:
git switch -c
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
🌱 Resolving package Fetching https://github.com/kylef/PathKit from cache Fetching https://github.com/onevcat/Rainbow from cache Fetching https://github.com/jakeheis/SwiftCLI from cache Fetched https://github.com/jakeheis/SwiftCLI (0.58s) Fetched https://github.com/onevcat/Rainbow (0.58s) Fetched https://github.com/kylef/PathKit (0.58s) Fetching https://github.com/jakeheis/Icebox from cache Fetching https://github.com/kylef/Spectre.git from cache Fetching https://github.com/scottrhoyt/SwiftyTextTable from cache Fetched https://github.com/jakeheis/Icebox (0.57s) Fetched https://github.com/scottrhoyt/SwiftyTextTable (0.57s) Computing version for https://github.com/scottrhoyt/SwiftyTextTable Fetched https://github.com/kylef/Spectre.git (0.57s) Computed https://github.com/scottrhoyt/SwiftyTextTable at 0.9.0 (0.05s) Computing version for https://github.com/jakeheis/SwiftCLI Computed https://github.com/jakeheis/SwiftCLI at 6.0.1 (0.05s) Computing version for https://github.com/onevcat/Rainbow Computed https://github.com/onevcat/Rainbow at 3.1.5 (0.05s) Computing version for https://github.com/kylef/PathKit Computed https://github.com/kylef/PathKit at 1.0.0 (0.05s) Computing version for https://github.com/jakeheis/Icebox Computed https://github.com/jakeheis/Icebox at 0.0.7 (0.05s) Computing version for https://github.com/kylef/Spectre.git Computed https://github.com/kylef/Spectre.git at 0.9.0 (0.06s) Creating working copy for https://github.com/scottrhoyt/SwiftyTextTable Working copy of https://github.com/scottrhoyt/SwiftyTextTable resolved at 0.9.0 Creating working copy for https://github.com/onevcat/Rainbow Working copy of https://github.com/onevcat/Rainbow resolved at 3.1.5 Creating working copy for https://github.com/jakeheis/Icebox Working copy of https://github.com/jakeheis/Icebox resolved at 0.0.7 Creating working copy for https://github.com/kylef/Spectre.git Working copy of https://github.com/kylef/Spectre.git resolved at 0.9.0 Creating working copy for https://github.com/kylef/PathKit Working copy of https://github.com/kylef/PathKit resolved at 1.0.0 Creating working copy for https://github.com/jakeheis/SwiftCLI Working copy of https://github.com/jakeheis/SwiftCLI resolved at 6.0.1 🌱 Building package /private/var/folders/fc/c1k505md1sgf80y1nx0xd9jw0000gn/T/mint/github.com_jakeheis_Ice/.build/checkouts/PathKit/Sources/PathKit.swift:583:12: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>') free(cPattern) ^ /private/var/folders/fc/c1k505md1sgf80y1nx0xd9jw0000gn/T/mint/github.com_jakeheis_Ice/.build/checkouts/PathKit/Sources/PathKit.swift:583:12: note: coalesce using '??' to provide a default when the optional value contains 'nil' free(cPattern) ^ ?? <#default value#> /private/var/folders/fc/c1k505md1sgf80y1nx0xd9jw0000gn/T/mint/github.com_jakeheis_Ice/.build/checkouts/PathKit/Sources/PathKit.swift:583:12: note: force-unwrap using '!' to abort execution if the optional value contains 'nil' free(cPattern) ^ ! /private/var/folders/fc/c1k505md1sgf80y1nx0xd9jw0000gn/T/mint/github.com_jakeheis_Ice/.build/checkouts/SwiftCLI/Sources/SwiftCLI/Command.swift:11:27: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead public protocol Routable: class { ^~~~~ AnyObject
🌱 Encountered error during "swift build -c release -Xswiftc -target -Xswiftc x86_64-apple-macosx12.0" 🌱 Failed to build Ice 0.8.3 with SPM`