Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

install fails with "note: use 'compactMap(_:)' instead" #15

Open
technicalpickles opened this issue Feb 16, 2022 · 3 comments
Open

install fails with "note: use 'compactMap(_:)' instead" #15

technicalpickles opened this issue Feb 16, 2022 · 3 comments

Comments

@technicalpickles
Copy link

==> Installing kr from kryptco/tap
==> make install
Last 15 lines from /Users/josh.nichols/Library/Logs/Homebrew/kr/01.make:
/tmp/kr-20220216-69686-6vumk/src/github.com/kryptco/kr/krbtle/krbtle/Bluetooth.swift:769:52: note: use 'compactMap(_:)' instead
    let uuids = cache.components(separatedBy: ",").flatMap({UUID(uuidString: $0)}).map({CBUUID(nsuuid: $0)})
                                                   ^~~~~~~
                                                   compactMap

** BUILD FAILED **


The following build commands failed:
	CompileSwift normal arm64 (in target 'krbtle' from project 'krbtle')
	CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'krbtle' from project 'krbtle')
	CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'krbtle' from project 'krbtle')
	CompileSwift normal x86_64 (in target 'krbtle' from project 'krbtle')
(4 failures)
make: *** [all] Error 65

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/kryptco/homebrew-tap/issues

These open issues may also help:
fixes `brew install kr --HEAD` https://github.com/kryptco/homebrew-tap/pull/14

From brew config:

HOMEBREW_VERSION: 3.3.15-49-g676dbef
ORIGIN: https://github.com/Homebrew/brew
HEAD: 676dbefde856607a0a631d5cd2b771fe4dc9170e
Last commit: 5 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: b51fa7b15b25ba9a5c4a1fd2fd95e66847847af7
Core tap last commit: 24 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_CORE_GIT_REMOTE: https://github.com/Homebrew/homebrew-core
HOMEBREW_EDITOR: mvim -f
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 13.0.0 build 1300
Git: 2.35.1 => /opt/homebrew/bin/git
Curl: 7.77.0 => /usr/bin/curl
macOS: 12.1-arm64
CLT: 13.2.0.0.1.1638488800
Xcode: 13.2.1
Rosetta 2: false
@technicalpickles
Copy link
Author

Ran into issues trying to use brew install kr --HEAD, but #14 fixes it, and I was able to install that way.

@rchenzheng
Copy link

Ran into issues trying to use brew install kr --HEAD, but #14 fixes it, and I was able to install that way.

Did you end up doing the install from source? If not, how did you go about doing the brew installation?

@rchenzheng
Copy link

Ran into issues trying to use brew install kr --HEAD, but #14 fixes it, and I was able to install that way.

Did you end up doing the install from source? If not, how did you go about doing the brew installation?

I ended up forking and making the same changes to get it working.

Thanks @technicalpickles @AlexanderPavlenko

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants