gopasspw / gopass-jsonapi

Gopass Browser Bindings
MIT License
51 stars 20 forks source link

1.15.14 regression build failure on macos sequoia #129

Open chenrui333 opened 3 weeks ago

chenrui333 commented 3 weeks ago

Summary

👋 seeing some regression build failure as below when building for macos sequoia

  # github.com/kbinani/screenshot
  /Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/kbinani/screenshot@v0.0.0-20230812210009-b87d31814237/screenshot_darwin.go:10:9: error: 'CGDisplayCreateImageForRect' is unavailable: obsoleted in macOS 15.0 - Please use ScreenCaptureKit instead.
     10 |         return CGDisplayCreateImageForRect(display, rect);
        |                ^
  /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:391:33: note: 'CGDisplayCreateImageForRect' has been explicitly marked unavailable here
    391 | CG_EXTERN CGImageRef __nullable CGDisplayCreateImageForRect(
        |                                 ^
  1 error generated.

looks like this PR should fix the issue.

full build log, https://github.com/Homebrew/homebrew-core/actions/runs/10824040627/job/30030608454#step:4:104