Starship prompt failing to build on MacOs

Describe the bug
I'm new to Nix and the ecosystem and I'm trying to install all the packages I use in my dev environment.
When installing starship I get a build error which is still cryptic to me.
When I run nix-env -iA nixpkgs.starship attempting to install, the build fails and I get this output when I run nix log /nix/store/qmj9qb3z5r2qizswvx443xd4xyayzv0n-starship-1.3.0.drv --extra-experimental-features nix-command
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/dw6hqmr20l0niqs5kq112rzvxg8d58v2-source
source root is source
Executing cargoSetupPostUnpackHook
unpacking source archive /nix/store/rsi4ij6hhh53mzyhqwmkxhjjcl9qdxc9-starship-1.3.0-vendor.tar.gz
Finished cargoSetupPostUnpackHook
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
Executing cargoSetupPostPatchHook
Validating consistency between /private/tmp/nix-build-starship-1.3.0.drv-0/source//Cargo.lock and /private/tmp/nix-build-starship-1.3.0.drv-0/starship-1.3.0-vendor.tar.gz/Cargo.lock
Finished cargoSetupPostPatchHook
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Executing cargoBuildHook
++ env CC_aarch64-apple-darwin=/nix/store/km02igh4pshp20d0wn89rf5jjfxcm8v5-clang-wrapper-11.1.0/bin/cc CXX_aarch64-apple-darwin=/nix/store/km02igh4pshp20d0wn89rf5jjfxcm8v5-clang-wrapper-11.1.0/bin/c++ CC_aarc
   Compiling libc v0.2.102
   Compiling autocfg v1.0.1
   Compiling version_check v0.9.3
   Compiling cfg-if v1.0.0
   Compiling proc-macro2 v1.0.29
   Compiling unicode-xid v0.2.2
   Compiling syn v1.0.76
   Compiling pkg-config v0.3.19
   Compiling memchr v2.4.1
   Compiling serde_derive v1.0.136
   Compiling serde v1.0.136
   Compiling typenum v1.14.0
   Compiling lazy_static v1.4.0
   Compiling crossbeam-utils v0.8.5
   Compiling tinyvec_macros v0.1.0
   Compiling matches v0.1.9
   Compiling log v0.4.14
   Compiling unicode-bidi v0.3.6
   Compiling percent-encoding v2.1.0
   Compiling ppv-lite86 v0.2.10
   Compiling crossbeam-epoch v0.9.5
   Compiling either v1.6.1
   Compiling bitflags v1.3.2
   Compiling hashbrown v0.11.2
   Compiling core-foundation-sys v0.7.0
   Compiling unicode-segmentation v1.9.0
   Compiling ucd-trie v0.1.3
   Compiling scopeguard v1.1.0
   Compiling rayon-core v1.9.1
   Compiling block v0.1.6
   Compiling unicode-width v0.1.9
   Compiling ahash v0.4.7
   Compiling maplit v1.0.2
   Compiling is_debug v1.0.1
   Compiling ryu v1.0.5
   Compiling strsim v0.10.0
   Compiling semver v1.0.5
   Compiling termcolor v1.1.2
   Compiling minimal-lexical v0.2.1
   Compiling serde_json v1.0.78
   Compiling starship-battery v0.7.9
   Compiling bytes v1.1.0
   Compiling regex-syntax v0.6.25
   Compiling linked-hash-map v0.5.4
   Compiling utf8-width v0.1.5
   Compiling itoa v1.0.1
   Compiling pathdiff v0.2.0
   Compiling once_cell v1.9.0
   Compiling urlencoding v2.1.0
   Compiling shell-words v1.1.0
   Compiling path-slash v0.1.4
   Compiling ansi_term v0.12.1
   Compiling local_ipaddress v0.1.3
   Compiling generic-array v0.14.4
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling unicase v2.6.0
   Compiling nom v7.1.0
   Compiling num-integer v0.1.44
   Compiling num-traits v0.2.14
   Compiling memoffset v0.6.4
   Compiling indexmap v1.8.0
   Compiling rayon v1.5.1
   Compiling tinyvec v1.4.0
   Compiling form_urlencoded v1.0.1
   Compiling itertools v0.10.1
   Compiling pest v2.1.3
   Compiling heck v0.3.3
   Compiling textwrap v0.14.2
   Compiling hashbrown v0.9.1
   Compiling yaml-rust v0.4.5
   Compiling byte-unit v4.0.13
   Compiling open v2.0.2
   Compiling unicode-normalization v0.1.19
   Compiling pest_meta v2.1.3
   Compiling os_str_bytes v6.0.0
   Compiling aho-corasick v0.7.18
   Compiling combine v4.6.3
   Compiling quick-xml v0.22.0
   Compiling quote v1.0.9
   Compiling crossbeam-channel v0.5.1
   Compiling jobserver v0.1.24
   Compiling time v0.1.44
   Compiling getrandom v0.2.3
   Compiling malloc_buf v0.0.6
   Compiling num_cpus v1.13.0
   Compiling atty v0.2.14
   Compiling dirs v1.0.5
   Compiling cpufeatures v0.2.1
   Compiling dirs-sys-next v0.1.2
   Compiling mach v0.3.2
   Compiling core-foundation v0.7.0
   Compiling gethostname v0.2.2
   Compiling which v4.2.4
   Compiling terminal_size v0.1.17
   Compiling idna v0.2.3
   Compiling nix v0.23.1
   Compiling regex v1.5.4
   Compiling cc v1.0.70
   Compiling process_control v3.2.1
   Compiling uom v0.30.0
   Compiling rand_core v0.6.3
   Compiling objc v0.2.7
   Compiling directories-next v2.0.0
   Compiling versions v4.0.0
   Compiling crossbeam-deque v0.8.1
   Compiling block-buffer v0.10.0
   Compiling crypto-common v0.1.0
   Compiling url v2.2.2
   Compiling chrono v0.4.19
   Compiling rand_chacha v0.3.1
   Compiling objc_id v0.1.1
   Compiling libz-sys v1.1.3
   Compiling libgit2-sys v0.12.26+1.3.0
   Compiling mac-notification-sys v0.3.0
   Compiling sys-info v0.9.1
   Compiling digest v0.10.0
   Compiling pest_generator v2.1.3
   Compiling rand v0.8.4
   Compiling objc-foundation v0.1.1
   Compiling sha-1 v0.10.0
   Compiling dlv-list v0.2.3
   Compiling clap_derive v3.0.0
   Compiling starship_module_config_derive v0.2.1 (/private/tmp/nix-build-starship-1.3.0.drv-0/source/starship_module_config_derive)
   Compiling pest_derive v2.1.0
   Compiling ordered-multimap v0.3.1
   Compiling rust-ini v0.17.0
The following warnings were emitted during compilation:

warning: /nix/store/lfsd0c96b0ckaxgdchgdds5ixf0rpy44-libobjc-11.0.0/include/objc/module.modulemap:1:8: error: redefinition of module 'ObjectiveC'
warning: module ObjectiveC [system] [extern_c] {
warning:        ^
warning: /nix/store/s08r4iph68fdhvlc9fpniq1xi5k02w97-libobjc-11.0.0/include/objc/module.modulemap:1:8: note: previously defined here
warning: module ObjectiveC [system] [extern_c] {
warning:        ^
warning: /nix/store/kb9lrwksbcb2br2n5srgvwhnklqx2slk-libSystem-11.0.0/include/xpc/module.modulemap:1:8: error: redefinition of module 'XPC'
warning: module XPC [system] [extern_c] {
warning:        ^
warning: /nix/store/vb38d7pzcvp4h6w8bk7hwfckx20g9qgm-apple-lib-xpc/include/xpc/module.modulemap:1:8: note: previously defined here
warning: module XPC [system] [extern_c] {
warning:        ^
warning: While building module 'Foundation' imported from objc/notify.h:1:
warning: While building module 'CoreFoundation' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
warning: In file included from <module-includes>:1:
warning: In file included from /nix/store/01yba9h37hpw0z5s70pfplyd4ghmzjnv-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
warning: In file included from /nix/store/01yba9h37hpw0z5s70pfplyd4ghmzjnv-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:17:
warning: /nix/store/01yba9h37hpw0z5s70pfplyd4ghmzjnv-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:10: fatal error: could not build module 'Dispatch'
warning: #include <dispatch/dispatch.h>
warning:  ~~~~~~~~^
warning: While building module 'Foundation' imported from objc/notify.h:1:
warning: In file included from <module-includes>:1:
warning: /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: fatal error: could not build module 'CoreFoundation'
warning: #include <CoreFoundation/CoreFoundation.h>
warning:  ~~~~~~~~^
warning: While building module 'Foundation' imported from objc/notify.h:1:
warning: While building module 'CoreGraphics' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSGeometry.h:9:
warning: In file included from <module-includes>:1:
warning: In file included from /nix/store/fiimlh3gj1sdr2n3khxqy99dvvzqg3pn-apple-framework-CoreGraphics-11.0.0/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:8:
warning: /nix/store/fiimlh3gj1sdr2n3khxqy99dvvzqg3pn-apple-framework-CoreGraphics-11.0.0/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:12:10: fatal error: could not build module 'CoreFoundation'
warning: #include <CoreFoundation/CFBase.h>
warning:  ~~~~~~~~^
warning: While building module 'Foundation' imported from objc/notify.h:1:
warning: While building module 'CoreGraphics' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSGeometry.h:9:
warning: While building module 'IOKit' imported from /nix/store/fiimlh3gj1sdr2n3khxqy99dvvzqg3pn-apple-framework-CoreGraphics-11.0.0/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayConfiguration.h:
warning: In file included from <module-includes>:4:
warning: /nix/store/vdwk5bz75dfk6rlkxns59vml7m49fs8b-apple-framework-IOKit-11.0.0/Library/Frameworks/IOKit.framework/Headers/IOCFBundle.h:26:10: fatal error: could not build module 'CoreFoundation'
warning: #include <CoreFoundation/CoreFoundation.h>
warning:  ~~~~~~~~^
warning: While building module 'Foundation' imported from objc/notify.h:1:
warning: While building module 'Security' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:9:
warning: In file included from <module-includes>:1:
warning: In file included from /nix/store/46fa5qhxc3cafslfs10dqp3ab1vks55g-apple-framework-Security-11.0.0/Library/Frameworks/Security.framework/Headers/Security.h:27:
warning: /nix/store/46fa5qhxc3cafslfs10dqp3ab1vks55g-apple-framework-Security-11.0.0/Library/Frameworks/Security.framework/Headers/SecBase.h:28:10: fatal error: could not build module 'CoreFoundation'
warning: #include <CoreFoundation/CFBase.h>
warning:  ~~~~~~~~^
warning: While building module 'Foundation' imported from objc/notify.h:1:
warning: While building module 'Security' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:9:
warning: While building module 'XPC' imported from /nix/store/46fa5qhxc3cafslfs10dqp3ab1vks55g-apple-framework-Security-11.0.0/Library/Frameworks/Security.framework/Headers/SecCode.h:35:
warning: /nix/store/lfsd0c96b0ckaxgdchgdds5ixf0rpy44-libobjc-11.0.0/include/objc/module.modulemap:1:8: error: redefinition of module 'ObjectiveC'
warning: module ObjectiveC [system] [extern_c] {
warning:        ^
warning: /nix/store/s08r4iph68fdhvlc9fpniq1xi5k02w97-libobjc-11.0.0/include/objc/module.modulemap:1:8: note: previously defined here
warning: module ObjectiveC [system] [extern_c] {
warning:        ^
warning: While building module 'Foundation' imported from objc/notify.h:1:
warning: While building module 'Security' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:9:
warning: While building module 'XPC' imported from /nix/store/46fa5qhxc3cafslfs10dqp3ab1vks55g-apple-framework-Security-11.0.0/Library/Frameworks/Security.framework/Headers/SecCode.h:35:
warning: In file included from <module-includes>:1:
warning: /nix/store/vb38d7pzcvp4h6w8bk7hwfckx20g9qgm-apple-lib-xpc/include/xpc/xpc.h:7:10: fatal error: could not build module 'Dispatch'
warning: #include <dispatch/dispatch.h>
warning:  ~~~~~~~~^
warning: While building module 'Foundation' imported from objc/notify.h:1:
warning: While building module 'CoreServices' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:15:
warning: In file included from <module-includes>:1:
warning: /nix/store/za8im9vfw13d73yfyxz50slga8hkp1kv-apple-framework-CoreServices-11.0.0/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:10: fatal error: could not build module 'CoreFounda
warning: #include <CoreFoundation/CoreFoundation.h>
warning:  ~~~~~~~~^
warning: While building module 'Foundation' imported from objc/notify.h:1:
warning: While building module 'CoreServices' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:15:
warning: While building module 'DiskArbitration' imported from /nix/store/za8im9vfw13d73yfyxz50slga8hkp1kv-apple-framework-CoreServices-11.0.0/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.f
warning: In file included from <module-includes>:1:
warning: /nix/store/bx8h4bl5fh5f3a639paykpz50cr8nfj6-apple-framework-DiskArbitration-11.0.0/Library/Frameworks/DiskArbitration.framework/Headers/DiskArbitration.h:27:10: fatal error: could not build module 'C
warning: #include <CoreFoundation/CoreFoundation.h>
warning:  ~~~~~~~~^
warning: While building module 'Foundation' imported from objc/notify.h:1:
warning: While building module 'CoreServices' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:15:
warning: While building module 'CFNetwork' imported from /nix/store/za8im9vfw13d73yfyxz50slga8hkp1kv-apple-framework-CoreServices-11.0.0/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:31:
warning: In file included from <module-includes>:1:
warning: /nix/store/dkr5w4p0pbrkvw9q1iamvq7f21sg779p-apple-framework-CFNetwork-11.0.0/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h:18:10: fatal error: could not build module 'CoreFoundation'
warning: #include <CoreFoundation/CoreFoundation.h>
warning:  ~~~~~~~~^
warning: While building module 'Foundation' imported from objc/notify.h:1:
warning: While building module 'ApplicationServices' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDes
warning: In file included from <module-includes>:1:
warning: /nix/store/fhbjgn2qsajqd6w1bb4b02y1mw88kviq-apple-framework-ApplicationServices-11.0.0/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:10: fatal error: could not bui
warning: #include <CoreServices/CoreServices.h>
warning:  ~~~~~~~~^
warning: While building module 'Foundation' imported from objc/notify.h:1:
warning: While building module 'ApplicationServices' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDes
warning: While building module 'CoreText' imported from /nix/store/fhbjgn2qsajqd6w1bb4b02y1mw88kviq-apple-framework-ApplicationServices-11.0.0/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.f
warning: In file included from <module-includes>:1:
warning: In file included from /nix/store/i5c7samchv65agdxgvzcx675n4xym6c2-apple-framework-CoreText-11.0.0/Library/Frameworks/CoreText.framework/Headers/CoreText.h:20:
warning: In file included from /nix/store/i5c7samchv65agdxgvzcx675n4xym6c2-apple-framework-CoreText-11.0.0/Library/Frameworks/CoreText.framework/Headers/CTFont.h:20:
warning: In file included from /nix/store/i5c7samchv65agdxgvzcx675n4xym6c2-apple-framework-CoreText-11.0.0/Library/Frameworks/CoreText.framework/Headers/CTFontDescriptor.h:20:
warning: /nix/store/i5c7samchv65agdxgvzcx675n4xym6c2-apple-framework-CoreText-11.0.0/Library/Frameworks/CoreText.framework/Headers/CTFontTraits.h:14:10: fatal error: could not build module 'CoreFoundation'
warning: #include <CoreFoundation/CoreFoundation.h>
warning:  ~~~~~~~~^
warning: While building module 'Foundation' imported from objc/notify.h:1:
warning: While building module 'ApplicationServices' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDes
warning: While building module 'ColorSync' imported from /nix/store/fhbjgn2qsajqd6w1bb4b02y1mw88kviq-apple-framework-ApplicationServices-11.0.0/Library/Frameworks/ApplicationServices.framework/Headers/Applica
warning: In file included from <module-includes>:1:
warning: In file included from /nix/store/pb3jgfhwm06zaqy4566j5dn9qjgjg1nc-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h:10:
warning: /nix/store/pb3jgfhwm06zaqy4566j5dn9qjgjg1nc-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:12:10: fatal error: could not build module 'CoreFoundation'
warning: #include <CoreFoundation/CoreFoundation.h>
warning:  ~~~~~~~~^
warning: While building module 'Foundation' imported from objc/notify.h:1:
warning: While building module 'ApplicationServices' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDes
warning: While building module 'ImageIO' imported from /nix/store/fhbjgn2qsajqd6w1bb4b02y1mw88kviq-apple-framework-ApplicationServices-11.0.0/Library/Frameworks/ApplicationServices.framework/Headers/Applicati
warning: In file included from <module-includes>:1:
warning: In file included from /nix/store/zhcbihlkixfg9cr53bsl6jyg07wy797m-apple-framework-ImageIO-11.0.0/Library/Frameworks/ImageIO.framework/Headers/ImageIO.h:10:
warning: /nix/store/zhcbihlkixfg9cr53bsl6jyg07wy797m-apple-framework-ImageIO-11.0.0/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h:16:10: fatal error: could not build module 'CoreFoundation'
warning: #include <CoreFoundation/CoreFoundation.h>
warning:  ~~~~~~~~^
warning: In file included from objc/notify.m:1:
warning: objc/notify.h:1:9: fatal error: could not build module 'Foundation'
warning: #import <Foundation/Foundation.h>
warning:  ~~~~~~~^
warning: 17 errors generated.

error: failed to run custom build command for `mac-notification-sys v0.3.0`

Caused by:
  process didn't exit successfully: `/private/tmp/nix-build-starship-1.3.0.drv-0/source/target/release/build/mac-notification-sys-00bbbf594b92f79f/build-script-build` (exit status: 1)
  --- stdout
  TARGET = Some("aarch64-apple-darwin")
  OPT_LEVEL = Some("3")
  HOST = Some("aarch64-apple-darwin")
  CC_aarch64-apple-darwin = Some("/nix/store/km02igh4pshp20d0wn89rf5jjfxcm8v5-clang-wrapper-11.1.0/bin/cc")
  CFLAGS_aarch64-apple-darwin = None
  CFLAGS_aarch64_apple_darwin = None
  HOST_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = None
  running: "/nix/store/km02igh4pshp20d0wn89rf5jjfxcm8v5-clang-wrapper-11.1.0/bin/cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-arch" "arm64" "-fmodules" "-o" "/private/tmp/nix-build-starship-1.3
  cargo:warning=/nix/store/lfsd0c96b0ckaxgdchgdds5ixf0rpy44-libobjc-11.0.0/include/objc/module.modulemap:1:8: error: redefinition of module 'ObjectiveC'
  cargo:warning=module ObjectiveC [system] [extern_c] {
  cargo:warning=       ^
  cargo:warning=/nix/store/s08r4iph68fdhvlc9fpniq1xi5k02w97-libobjc-11.0.0/include/objc/module.modulemap:1:8: note: previously defined here
  cargo:warning=module ObjectiveC [system] [extern_c] {
  cargo:warning=       ^
  cargo:warning=/nix/store/kb9lrwksbcb2br2n5srgvwhnklqx2slk-libSystem-11.0.0/include/xpc/module.modulemap:1:8: error: redefinition of module 'XPC'
  cargo:warning=module XPC [system] [extern_c] {
  cargo:warning=       ^
  cargo:warning=/nix/store/vb38d7pzcvp4h6w8bk7hwfckx20g9qgm-apple-lib-xpc/include/xpc/module.modulemap:1:8: note: previously defined here
  cargo:warning=module XPC [system] [extern_c] {
  cargo:warning=       ^
  cargo:warning=While building module 'Foundation' imported from objc/notify.h:1:
  cargo:warning=While building module 'CoreFoundation' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/Foundation.h:
  cargo:warning=In file included from <module-includes>:1:
  cargo:warning=In file included from /nix/store/01yba9h37hpw0z5s70pfplyd4ghmzjnv-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
  cargo:warning=In file included from /nix/store/01yba9h37hpw0z5s70pfplyd4ghmzjnv-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:17:
  cargo:warning=/nix/store/01yba9h37hpw0z5s70pfplyd4ghmzjnv-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:10: fatal error: could not build module 'Dis
  cargo:warning=#include <dispatch/dispatch.h>
  cargo:warning= ~~~~~~~~^
  cargo:warning=While building module 'Foundation' imported from objc/notify.h:1:
  cargo:warning=In file included from <module-includes>:1:
  cargo:warning=/nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: fatal error: could not build module 'CoreFounda
  cargo:warning=#include <CoreFoundation/CoreFoundation.h>
  cargo:warning= ~~~~~~~~^
  cargo:warning=While building module 'Foundation' imported from objc/notify.h:1:
  cargo:warning=While building module 'CoreGraphics' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSGeometry.h:9:
  cargo:warning=In file included from <module-includes>:1:
  cargo:warning=In file included from /nix/store/fiimlh3gj1sdr2n3khxqy99dvvzqg3pn-apple-framework-CoreGraphics-11.0.0/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:8:
  cargo:warning=/nix/store/fiimlh3gj1sdr2n3khxqy99dvvzqg3pn-apple-framework-CoreGraphics-11.0.0/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:12:10: fatal error: could not build module 'CoreFound
  cargo:warning=#include <CoreFoundation/CFBase.h>
  cargo:warning= ~~~~~~~~^
  cargo:warning=While building module 'Foundation' imported from objc/notify.h:1:
  cargo:warning=While building module 'CoreGraphics' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSGeometry.h:9:
  cargo:warning=While building module 'IOKit' imported from /nix/store/fiimlh3gj1sdr2n3khxqy99dvvzqg3pn-apple-framework-CoreGraphics-11.0.0/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayConfigura
  cargo:warning=In file included from <module-includes>:4:
  cargo:warning=/nix/store/vdwk5bz75dfk6rlkxns59vml7m49fs8b-apple-framework-IOKit-11.0.0/Library/Frameworks/IOKit.framework/Headers/IOCFBundle.h:26:10: fatal error: could not build module 'CoreFoundation'
  cargo:warning=#include <CoreFoundation/CoreFoundation.h>
  cargo:warning= ~~~~~~~~^
  cargo:warning=While building module 'Foundation' imported from objc/notify.h:1:
  cargo:warning=While building module 'Security' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:9
  cargo:warning=In file included from <module-includes>:1:
  cargo:warning=In file included from /nix/store/46fa5qhxc3cafslfs10dqp3ab1vks55g-apple-framework-Security-11.0.0/Library/Frameworks/Security.framework/Headers/Security.h:27:
  cargo:warning=/nix/store/46fa5qhxc3cafslfs10dqp3ab1vks55g-apple-framework-Security-11.0.0/Library/Frameworks/Security.framework/Headers/SecBase.h:28:10: fatal error: could not build module 'CoreFoundation'
  cargo:warning=#include <CoreFoundation/CFBase.h>
  cargo:warning= ~~~~~~~~^
  cargo:warning=While building module 'Foundation' imported from objc/notify.h:1:
  cargo:warning=While building module 'Security' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:9
  cargo:warning=While building module 'XPC' imported from /nix/store/46fa5qhxc3cafslfs10dqp3ab1vks55g-apple-framework-Security-11.0.0/Library/Frameworks/Security.framework/Headers/SecCode.h:35:
  cargo:warning=/nix/store/lfsd0c96b0ckaxgdchgdds5ixf0rpy44-libobjc-11.0.0/include/objc/module.modulemap:1:8: error: redefinition of module 'ObjectiveC'
  cargo:warning=module ObjectiveC [system] [extern_c] {
  cargo:warning=       ^
  cargo:warning=/nix/store/s08r4iph68fdhvlc9fpniq1xi5k02w97-libobjc-11.0.0/include/objc/module.modulemap:1:8: note: previously defined here
  cargo:warning=module ObjectiveC [system] [extern_c] {
  cargo:warning=       ^
  cargo:warning=While building module 'Foundation' imported from objc/notify.h:1:
  cargo:warning=While building module 'Security' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:9
  cargo:warning=While building module 'XPC' imported from /nix/store/46fa5qhxc3cafslfs10dqp3ab1vks55g-apple-framework-Security-11.0.0/Library/Frameworks/Security.framework/Headers/SecCode.h:35:
  cargo:warning=In file included from <module-includes>:1:
  cargo:warning=/nix/store/vb38d7pzcvp4h6w8bk7hwfckx20g9qgm-apple-lib-xpc/include/xpc/xpc.h:7:10: fatal error: could not build module 'Dispatch'
  cargo:warning=#include <dispatch/dispatch.h>
  cargo:warning= ~~~~~~~~^
  cargo:warning=While building module 'Foundation' imported from objc/notify.h:1:
  cargo:warning=While building module 'CoreServices' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:15
  cargo:warning=In file included from <module-includes>:1:
  cargo:warning=/nix/store/za8im9vfw13d73yfyxz50slga8hkp1kv-apple-framework-CoreServices-11.0.0/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:10: fatal error: could not build module 'Cor
  cargo:warning=#include <CoreFoundation/CoreFoundation.h>
  cargo:warning= ~~~~~~~~^
  cargo:warning=While building module 'Foundation' imported from objc/notify.h:1:
  cargo:warning=While building module 'CoreServices' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:15
  cargo:warning=While building module 'DiskArbitration' imported from /nix/store/za8im9vfw13d73yfyxz50slga8hkp1kv-apple-framework-CoreServices-11.0.0/Library/Frameworks/CoreServices.framework/Frameworks/Carbo
  cargo:warning=In file included from <module-includes>:1:
  cargo:warning=/nix/store/bx8h4bl5fh5f3a639paykpz50cr8nfj6-apple-framework-DiskArbitration-11.0.0/Library/Frameworks/DiskArbitration.framework/Headers/DiskArbitration.h:27:10: fatal error: could not build mo
  cargo:warning=#include <CoreFoundation/CoreFoundation.h>
  cargo:warning= ~~~~~~~~^
  cargo:warning=While building module 'Foundation' imported from objc/notify.h:1:
  cargo:warning=While building module 'CoreServices' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:15
  cargo:warning=While building module 'CFNetwork' imported from /nix/store/za8im9vfw13d73yfyxz50slga8hkp1kv-apple-framework-CoreServices-11.0.0/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h
  cargo:warning=In file included from <module-includes>:1:
  cargo:warning=/nix/store/dkr5w4p0pbrkvw9q1iamvq7f21sg779p-apple-framework-CFNetwork-11.0.0/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h:18:10: fatal error: could not build module 'CoreFoundati
  cargo:warning=#include <CoreFoundation/CoreFoundation.h>
  cargo:warning= ~~~~~~~~^
  cargo:warning=While building module 'Foundation' imported from objc/notify.h:1:
  cargo:warning=While building module 'ApplicationServices' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSAppleE
  cargo:warning=In file included from <module-includes>:1:
  cargo:warning=/nix/store/fhbjgn2qsajqd6w1bb4b02y1mw88kviq-apple-framework-ApplicationServices-11.0.0/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23:10: fatal error: could
  cargo:warning=#include <CoreServices/CoreServices.h>
  cargo:warning= ~~~~~~~~^
  cargo:warning=While building module 'Foundation' imported from objc/notify.h:1:
  cargo:warning=While building module 'ApplicationServices' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSAppleE
  cargo:warning=While building module 'CoreText' imported from /nix/store/fhbjgn2qsajqd6w1bb4b02y1mw88kviq-apple-framework-ApplicationServices-11.0.0/Library/Frameworks/ApplicationServices.framework/Framework
  cargo:warning=In file included from <module-includes>:1:
  cargo:warning=In file included from /nix/store/i5c7samchv65agdxgvzcx675n4xym6c2-apple-framework-CoreText-11.0.0/Library/Frameworks/CoreText.framework/Headers/CoreText.h:20:
  cargo:warning=In file included from /nix/store/i5c7samchv65agdxgvzcx675n4xym6c2-apple-framework-CoreText-11.0.0/Library/Frameworks/CoreText.framework/Headers/CTFont.h:20:
  cargo:warning=In file included from /nix/store/i5c7samchv65agdxgvzcx675n4xym6c2-apple-framework-CoreText-11.0.0/Library/Frameworks/CoreText.framework/Headers/CTFontDescriptor.h:20:
  cargo:warning=/nix/store/i5c7samchv65agdxgvzcx675n4xym6c2-apple-framework-CoreText-11.0.0/Library/Frameworks/CoreText.framework/Headers/CTFontTraits.h:14:10: fatal error: could not build module 'CoreFoundat
  cargo:warning=#include <CoreFoundation/CoreFoundation.h>
  cargo:warning= ~~~~~~~~^
  cargo:warning=While building module 'Foundation' imported from objc/notify.h:1:
  cargo:warning=While building module 'ApplicationServices' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSAppleE
  cargo:warning=While building module 'ColorSync' imported from /nix/store/fhbjgn2qsajqd6w1bb4b02y1mw88kviq-apple-framework-ApplicationServices-11.0.0/Library/Frameworks/ApplicationServices.framework/Headers/
  cargo:warning=In file included from <module-includes>:1:
  cargo:warning=In file included from /nix/store/pb3jgfhwm06zaqy4566j5dn9qjgjg1nc-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSync.h:10:
  cargo:warning=/nix/store/pb3jgfhwm06zaqy4566j5dn9qjgjg1nc-apple-framework-ColorSync-11.0.0/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h:12:10: fatal error: could not build module 'CoreFoun
  cargo:warning=#include <CoreFoundation/CoreFoundation.h>
  cargo:warning= ~~~~~~~~^
  cargo:warning=While building module 'Foundation' imported from objc/notify.h:1:
  cargo:warning=While building module 'ApplicationServices' imported from /nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/NSAppleE
  cargo:warning=While building module 'ImageIO' imported from /nix/store/fhbjgn2qsajqd6w1bb4b02y1mw88kviq-apple-framework-ApplicationServices-11.0.0/Library/Frameworks/ApplicationServices.framework/Headers/Ap
  cargo:warning=In file included from <module-includes>:1:
  cargo:warning=In file included from /nix/store/zhcbihlkixfg9cr53bsl6jyg07wy797m-apple-framework-ImageIO-11.0.0/Library/Frameworks/ImageIO.framework/Headers/ImageIO.h:10:
  cargo:warning=/nix/store/zhcbihlkixfg9cr53bsl6jyg07wy797m-apple-framework-ImageIO-11.0.0/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h:16:10: fatal error: could not build module 'CoreFoundation
  cargo:warning=#include <CoreFoundation/CoreFoundation.h>
  cargo:warning= ~~~~~~~~^
  cargo:warning=In file included from objc/notify.m:1:
  cargo:warning=objc/notify.h:1:9: fatal error: could not build module 'Foundation'
  cargo:warning=#import <Foundation/Foundation.h>
  cargo:warning= ~~~~~~~^
  cargo:warning=17 errors generated.
  exit status: 1

  --- stderr

  error occurred: Command "/nix/store/km02igh4pshp20d0wn89rf5jjfxcm8v5-clang-wrapper-11.1.0/bin/cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-arch" "arm64" "-fmodules" "-o" "/private/tmp/nix-bui

warning: build failed, waiting for other jobs to finish...
error: build failed

Steps To Reproduce
Steps to reproduce the behavior:

Run nix-env -iA nixpkgs.starship

Expected behavior
Starship to install out-of-the-box
Notify maintainers
@bbigras @Frostman @marsam @davidtwco @Br1ght0ne
Sorry if you're not a maintainer I guessed your Github usernames from the starship package "maintainers" section here
Metadata
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"

 - system: `"aarch64-darwin"`
 - host os: `Darwin 21.1.0, macOS 12.0.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.6.1`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

I have the same issue. I played around with trying to fix it and it seems like this might be an aarch64-darwin specific problem. #159937 fixed this issue for x86_64-darwin, but not for aarch64-darwin.

I ran into the same problem yesterday too. I was able to work around it by overriding the version for now, but it looks fairly innocuous (missing a header) so I'd like to try and fix.

@jdahm that's what I ended up doing, too. I tried hacking on nixpkgs to fix the issues, but I'm still too fuzzy on Nix, in general, to know how to solve the issue. Especially as it relates to including macOS libraries as build inputs. I'm perplexed why the x86_64-darwin fix was insufficient for aarch64-darwin.

I ran into the same problem yesterday too. I was able to work around it by overriding the version for now, but it looks fairly innocuous (missing a header) so I'd like to try and fix.

@jdahm I noticed the starship version in the nix package is behind, did you overwrite/update this and it worked?

@dannyknows I had trouble on nixpkgs master see here. I tried simply overridding src with something like
let starship = pkgs.starship.overrideAttrs (oldAttrs: { src = ...; });

but ran into other issues, since the buildRustPackage function requires some other hashes updated as well. The easiest I could find was to copy the derivation in starship/default.nix from before the latest change. You can see how I did this on my starship.nix and import here.

I'm getting slightly different error output on my system, so I thought I'd drop what I'm getting here in case it would be helpful:
error: failed to run custom build command for `mac-notification-sys v0.3.0`

Caused by:
  process didn't exit successfully: `/private/tmp/nix-build-starship-1.3.0.drv-2/source/target/release/build/mac-notification-sys-00bbbf594b92f79f/build-script-build` (exit status: 1)
  --- stdout
  TARGET = Some("aarch64-apple-darwin")
  OPT_LEVEL = Some("3")
  HOST = Some("aarch64-apple-darwin")
  CC_aarch64-apple-darwin = Some("/nix/store/km02igh4pshp20d0wn89rf5jjfxcm8v5-clang-wrapper-11.1.0/bin/cc")
  CFLAGS_aarch64-apple-darwin = None
  CFLAGS_aarch64_apple_darwin = None
  HOST_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = None
  running: "/nix/store/km02igh4pshp20d0wn89rf5jjfxcm8v5-clang-wrapper-11.1.0/bin/cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-arch" "arm64" "-fmodules" "-o" "/private/tmp/nix-build-starship-1.3.0.drv-2/source/target/aarch64-apple-darwin/release/build/mac-notification-sys-45fb4cd83161bb96/out/objc/notify.o" "-c" "objc/notify.m"
  cargo:warning=While building module 'Foundation' imported from objc/notify.h:1:
  cargo:warning=In file included from <module-includes>:1:
  cargo:warning=/nix/store/04lkshfgbkask88qyijjla9kw7fcqn2s-apple-framework-Foundation-11.0.0/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: fatal error: could not build module 'CoreFoundation'
  cargo:warning=#include <CoreFoundation/CoreFoundation.h>
  cargo:warning= ~~~~~~~~^
  cargo:warning=In file included from objc/notify.m:1:
  cargo:warning=objc/notify.h:1:9: fatal error: could not build module 'Foundation'
  cargo:warning=#import <Foundation/Foundation.h>
  cargo:warning= ~~~~~~~^
  cargo:warning=While building module 'CoreServices' imported from objc/notify.h:3:
  cargo:warning=In file included from <module-includes>:1:
  cargo:warning=/nix/store/za8im9vfw13d73yfyxz50slga8hkp1kv-apple-framework-CoreServices-11.0.0/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:10: fatal error: could not build module 'CoreFoundation'
  cargo:warning=#include <CoreFoundation/CoreFoundation.h>
  cargo:warning= ~~~~~~~~^
  cargo:warning=While building module 'CoreServices' imported from objc/notify.h:3:
  cargo:warning=While building module 'DiskArbitration' imported from /nix/store/za8im9vfw13d73yfyxz50slga8hkp1kv-apple-framework-CoreServices-11.0.0/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:56:
  cargo:warning=In file included from <module-includes>:1:
  cargo:warning=/nix/store/bx8h4bl5fh5f3a639paykpz50cr8nfj6-apple-framework-DiskArbitration-11.0.0/Library/Frameworks/DiskArbitration.framework/Headers/DiskArbitration.h:27:10: fatal error: could not build module 'CoreFoundation'
  cargo:warning=#include <CoreFoundation/CoreFoundation.h>
  cargo:warning= ~~~~~~~~^
  cargo:warning=While building module 'CoreServices' imported from objc/notify.h:3:
  cargo:warning=While building module 'DiskArbitration' imported from /nix/store/za8im9vfw13d73yfyxz50slga8hkp1kv-apple-framework-CoreServices-11.0.0/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:56:
  cargo:warning=While building module 'IOKit' imported from /nix/store/bx8h4bl5fh5f3a639paykpz50cr8nfj6-apple-framework-DiskArbitration-11.0.0/Library/Frameworks/DiskArbitration.framework/Headers/DADisk.h:28:
  cargo:warning=In file included from <module-includes>:4:
  cargo:warning=/nix/store/vdwk5bz75dfk6rlkxns59vml7m49fs8b-apple-framework-IOKit-11.0.0/Library/Frameworks/IOKit.framework/Headers/IOCFBundle.h:26:10: fatal error: could not build module 'CoreFoundation'
  cargo:warning=#include <CoreFoundation/CoreFoundation.h>
  cargo:warning= ~~~~~~~~^
  cargo:warning=While building module 'CoreServices' imported from objc/notify.h:3:
  cargo:warning=While building module 'CFNetwork' imported from /nix/store/za8im9vfw13d73yfyxz50slga8hkp1kv-apple-framework-CoreServices-11.0.0/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:31:
  cargo:warning=In file included from <module-includes>:1:
  cargo:warning=/nix/store/dkr5w4p0pbrkvw9q1iamvq7f21sg779p-apple-framework-CFNetwork-11.0.0/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h:18:10: fatal error: could not build module 'CoreFoundation'
  cargo:warning=#include <CoreFoundation/CoreFoundation.h>
  cargo:warning= ~~~~~~~~^
  cargo:warning=While building module 'CoreServices' imported from objc/notify.h:3:
  cargo:warning=While building module 'Security' imported from /nix/store/za8im9vfw13d73yfyxz50slga8hkp1kv-apple-framework-CoreServices-11.0.0/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/CSIdentityBase.h:23:
  cargo:warning=In file included from <module-includes>:1:
  cargo:warning=In file included from /nix/store/46fa5qhxc3cafslfs10dqp3ab1vks55g-apple-framework-Security-11.0.0/Library/Frameworks/Security.framework/Headers/Security.h:27:
  cargo:warning=/nix/store/46fa5qhxc3cafslfs10dqp3ab1vks55g-apple-framework-Security-11.0.0/Library/Frameworks/Security.framework/Headers/SecBase.h:28:10: fatal error: could not build module 'CoreFoundation'
  cargo:warning=#include <CoreFoundation/CFBase.h>
  cargo:warning= ~~~~~~~~^
  cargo:warning=While building module 'CoreServices' imported from objc/notify.h:3:
  cargo:warning=While building module 'Security' imported from /nix/store/za8im9vfw13d73yfyxz50slga8hkp1kv-apple-framework-CoreServices-11.0.0/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/CSIdentityBase.h:23:
  cargo:warning=While building module 'XPC' imported from /nix/store/46fa5qhxc3cafslfs10dqp3ab1vks55g-apple-framework-Security-11.0.0/Library/Frameworks/Security.framework/Headers/SecCode.h:35:
  cargo:warning=In file included from <module-includes>:1:
  cargo:warning=/nix/store/vb38d7pzcvp4h6w8bk7hwfckx20g9qgm-apple-lib-xpc/include/xpc/xpc.h:7:2: fatal error: module 'ObjectiveC' is defined in both '/var/folders/lv/5z88rmb15jg6zq_npz01191c00009d/C/clang/ModuleCache/1GJQEQ0BVFG7Q/ObjectiveC-Q4EHAR85586A.pcm' and '/var/folders/lv/5z88rmb15jg6zq_npz01191c00009d/C/clang/ModuleCache/1GJQEQ0BVFG7Q/ObjectiveC-ZHR6IEYWP36V.pcm'
  cargo:warning=#include <dispatch/dispatch.h>
  cargo:warning= ^
  cargo:warning=8 errors generated.
  exit status: 1

  --- stderr

  error occurred: Command "/nix/store/km02igh4pshp20d0wn89rf5jjfxcm8v5-clang-wrapper-11.1.0/bin/cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-arch" "arm64" "-fmodules" "-o" "/private/tmp/nix-build-starship-1.3.0.drv-2/source/target/aarch64-apple-darwin/release/build/mac-notification-sys-45fb4cd83161bb96/out/objc/notify.o" "-c" "objc/notify.m" with args "cc" did not execute successfully (status code exit status: 1).

In my case I'd guess the main line of interest is:
cargo:warning=/nix/store/vb38d7pzcvp4h6w8bk7hwfckx20g9qgm-apple-lib-xpc/include/xpc/xpc.h:7:2: fatal error: module 'ObjectiveC' is defined in both '/var/folders/lv/5z88rmb15jg6zq_npz01191c00009d/C/clang/ModuleCache/1GJQEQ0BVFG7Q/ObjectiveC-Q4EHAR85586A.pcm' and '/var/folders/lv/5z88rmb15jg6zq_npz01191c00009d/C/clang/ModuleCache/1GJQEQ0BVFG7Q/ObjectiveC-ZHR6IEYWP36V.pcm'

I did a little exploration, and had a look at https://github.com/h4llow3En/mac-notification-sys and https://github.com/alexcrichton/cc-rs to try and understand what they are doing and why this issue is coming up on aarch64-darwin but didn't have much luck unfortunately. Maybe someone in @NixOS/darwin-maintainers, might be able to help?

The library in question did not get updated in about 3 years. with macOS 11 there where some deprications, which are used by the library. Although I can get the library to build in a non nix environment.

(Partly) Upstream issue: https://github.com/h4llow3En/mac-notification-sys/issues/28

This get's it from 17 to 15 errors. But really have to sleep now.

patch
diff --git a/pkgs/tools/misc/starship/default.nix b/pkgs/tools/misc/starship/default.nix
index d61fd9ddda9..87c6c543c1a 100644
--- a/pkgs/tools/misc/starship/default.nix
+++ b/pkgs/tools/misc/starship/default.nix
@@ -9,6 +9,9 @@
 , nixosTests
 , Security
 , Foundation
+, CoreServices
+, CoreFoundation
+, libdispatch
 }:

 rustPlatform.buildRustPackage rec {
@@ -25,7 +28,8 @@ rustPlatform.buildRustPackage rec {
   nativeBuildInputs = [ installShellFiles ] ++ lib.optionals stdenv.isLinux [ pkg-config ];

   buildInputs = lib.optionals stdenv.isLinux [ openssl ]
-    ++ lib.optionals stdenv.isDarwin [ libiconv Security Foundation ];
+    ++ lib.optionals stdenv.isDarwin [ libiconv /*Security*/ Foundation libdispatch ];
+    #++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ CoreServices CoreFoundation ];

   postInstall = ''
     for shell in bash fish zsh; do
@@ -49,5 +53,6 @@ rustPlatform.buildRustPackage rec {
     homepage = "https://starship.rs";
     license = licenses.isc;
     maintainers = with maintainers; [ bbigras danth davidtwco Br1ght0ne Frostman marsam ];
+    platforms = platforms.unix;
   };
 }
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index b69adcd4c52..375be67911b 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -24086,7 +24086,8 @@ with pkgs;
   stdmanpages = callPackage ../data/documentation/std-man-pages { };

   starship = callPackage ../tools/misc/starship {
-    inherit (darwin.apple_sdk.frameworks) Security Foundation;
+    inherit (darwin.apple_sdk.frameworks) Security Foundation CoreServices CoreFoundation;
+    inherit (darwin) libdispatch;
   };

   stig = callPackage ../applications/networking/p2p/stig { };

So, got it down to 1 redefined error, everything else looks to me like an error resulting of that. But no clue how to fix that, as it's a leak from the stage 4 bootstrap.

I'm facing the exact issue right now 😢  with a different package depending on mac-notification-sys

@tami5 which one? I'm trying to fight the underlying cause, but it seems to be inside of stdenv, not really where I find myself at home :)

@Kloenk  😆 I started with 17 errors, then added few inputs, went up to 37 errors then became more selective and running the logging got down to 7. maybe I should've ran inside nix shell to avoid doing nix log ..drv.

Maybe you can send me your work? I think I'm still at 13 errors.

Maybe you can send me your work? I think I'm still at 13 errors.

really 🙄, I'm back at 15 don't know what I added that raised those extra errors but I will work more it tom and share my findings. I build okay with cargo  if I can point nix to my local environment 🤔 .
bte package master repo has same errors not sure of the number of errors but I'll check further tom

Okay Now I'm on 8 error with current master. with total ignorance of buildInputs. ... hacking :)

# Foundation # +5 errors
# CoreFoundation # No difference
# Cocoa # +15 errors
# CoreServices # No difference
Libsystem # -1 error less
# IOSurface # No difference
# Security # No difference
# CoreServices # No difference
# libiconv # No difference
# AppKit # +5 errors
# libdispatch # No difference

Errors:

warning: In file included from objc/notify.m:1:
warning: objc/notify.h:1:9:
             fatal error: 'Cocoa/Cocoa.h' file not found
warning: #import <Cocoa/Cocoa.h>

warning: While building module 'CoreServices' imported from objc/notify.h:2:
warning: In file included from <module-includes>:1:
warning: $NIX_CoreServices/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:10:
          fatal error: could not build module 'CoreFoundation'
warning: #include <CoreFoundation/CoreFoundation.h>

warning: While building module 'CoreServices' imported from objc/notify.h:2:
warning: While building module 'DiskArbitration' imported from
$NIX_CoreServices/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/File
s.h:56:
warning: In file included from <module-includes>:1:
warning: $NIX_DiskArbitration/Library/Frameworks/DiskArbitration.framework/Headers/DiskArbitration.h:27:10:
      fatal error: could not build module 'CoreFoundation'
warning: #include <CoreFoundation/CoreFoundation.h>

warning: While building module 'CoreServices' imported from objc/notify.h:2:
warning: While building module 'DiskArbitration' imported from
       $NIX_CoreServices/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/File
s.h:56:
warning: While building module 'IOKit' imported from $NIX_DiskArbitration/Library/Frameworks/DiskArbitration.framework/Headers/DADisk.h:28:
warning: In file included from <module-includes>:4:
warning: $NIX_IOKit/Library/Frameworks/IOKit.framework/Headers/IOCFBundle.h:26:10:
          fatal error: could not build module 'CoreFoundation'
warning: #include <CoreFoundation/CoreFoundation.h>

warning: While building module 'CoreServices' imported from objc/notify.h:2:
warning: While building module 'CFNetwork' imported from $NIX_CoreServices/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:31:
warning: In file included from <module-includes>:1:
warning: $NIX_CFNetwork/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h:18:10:
           fatal error: could not build module 'CoreFoundation'
warning: #include <CoreFoundation/CoreFoundation.h>

warning: While building module 'CoreServices' imported from objc/notify.h:2:
warning: While building module 'Security' imported from
    $NIX_CoreServices/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/CSIdentityB
ase.h:23:
warning: In file included from <module-includes>:1:
warning: In file included from $NIX_Security/Library/Frameworks/Security.framework/Headers/Security.h:27:
warning: $NIX_Security/Library/Frameworks/Security.framework/Headers/SecBase.h:28:10:
               fatal error: could not build module 'CoreFoundation'
warning: #include <CoreFoundation/CFBase.h>

warning: While building module 'CoreServices' imported from objc/notify.h:2:
warning: While building module 'Security' imported from
    $NIX_CoreServices/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/CSIdentityB
ase.h:23:
warning: While building module 'XPC' imported from $NIX_Security/Library/Frameworks/Security.framework/Headers/SecCode.h:35:
warning: $NIX_LIBOBJC/include/objc/module.modulemap:1:8:
           error: redefinition of module 'ObjectiveC'
warning: module ObjectiveC [system] [extern_c] {
warning: /nix/store/s08r4iph68fdhvlc9fpniq1xi5k02w97-libobjc-11.0.0/include/objc/module.modulemap:1:8:
           note: previously defined here

7 errors generated:

'Cocoa/Cocoa.h' file not found
could not build module 'CoreFoundation'
could not build module 'CoreFoundation'
could not build module 'CoreFoundation'
could not build module 'CoreFoundation'
could not build module 'CoreFoundation'
redefinition of module 'ObjectiveC'

🤔

Did not saw cocoa on my end yet I believe. Can you send the diff on the nix files?

Did not saw cocoa on my end yet I believe. Can you send the diff on the nix files?

hmmm I haven't add any anything other than Libsystem to my build inputs
full log: https://pastebin.com/DCGsDFRh

Hmm, libsystem should already be there  as propagated input from Foundation.
Do we want to move this to matrix? (@kloenk:petabyte.dev)

I just managed to get mac-notification-sys building as its own derivation from a checkout of the repo using the following derivation:
{ pkgs ? import <nixpkgs> {} }:

with pkgs;

rustPlatform.buildRustPackage {
  pname = "mac-notification-sys";
  version = "0.3.1";

  src = ./.;

  cargoSha256 = "sha256-HX84vkTIk/gI/40kfFKKW3ORgH+hKg18SxW0xQuLGSs=";

  buildInputs = with darwin.apple_sdk.frameworks; [ Cocoa Foundation AppKit CoreServices ];

  NIX_CFLAGS_COMPILE = [
    # disable modules, otherwise we get redeclaration errors
    "-fno-modules"
    # link AppKit since we don't get it from modules now
    "-framework" "AppKit"
  ];
}

This is very hacky, especially using NIX_CFLAGS_COMPILE to override the -fmodules in the build script. The build script could be patched instead to remove that, but I couldn't figure out how to use cc::Build::flag to link AppKit.
I'm also not sure offhand how to override cargo dependencies of packages, so I don't know how to take this hack and apply it to starship.
I do wonder what the fundamental issue here is. The build script specifies -fmodules, but surely this isn't the only package in Nix that enables Obj-C modules. I don't understand why using modules produces redeclaration errors, I'm guessing it has to do with the way stdenv is built in stages. I didn't dig too much into this but my guess at the moment is the various frameworks reference dependencies (like libobjc) from the previous stdenv stage. But again, I find it hard to believe that no other nixpkgs derivation builds Obj-C code with modules.

I'm also very curious as to why this issue affects just aarch64 and not x86_64.

Poking around at NIX_CFLAGS_COMPILE shows interesting differences on x86_64 and aarch64, but I'm not sure if these differences are meaningful. What might be meaningful though is that CoreFoundation.tbd on aarch64 references libobjc but on x86_64 it doesn't (which might be why libobjc shows up on aarch64 and not on x86_64).

@lilyball, I thought the problem was some frameworks depend on XPC directly rather than depending on Libsystem, which in turn provides headers from various things, like XPC. So we end up with things getting declarations from both Libsystem and the underlying XPC at the same time. Is this incorrect? Issue I opened to track this.

@toonn I haven't dug into this enough to understand what's going on, but I do wonder why x86_64-darwin and aarch64-darwin behave differently here.

@lilyball, the difference is probably the stdenv. x86_64-darwin's stdenv is composed of the open source releases for version 10.12. Aarch64-darwin's stdenv uses SDK 10.14 built by Apple.

Still an issue on aarch64-darwin.

notify-rust is actually an unused dependency of starship (afaict). Removing it allows it to build on macOS.
https://github.com/Sciencentistguy/starship/commit/2063ca6b10f5ea3e18ff54b1ccc296dc7f636c2d

@Sciencentistguy do you have a PR up for that?

I believe notify-rust is used for the cmd_duration module, which has an option to show desktop notifications after particularly long running commands. so I doubt the maintainers would accept a PR removing it. However if you don't use that configuration option, you should be good to go with @Sciencentistguy's fork :)
Usage

I've cherry-picked the fix onto a different branch: https://github.com/Sciencentistguy/starship/tree/fix-aarch64-darwin-nix

after the merge of rust 1.59, I tried updating starship to the latest version, and it breaks x86_64 darwin.
it needed a new framework, but the latest error is really puzzling to me
 = note: Undefined symbols for architecture x86_64:
            "_OBJC_CLASS_$_NSImage", referenced from:
                objc-class-ref in libmac_notification_sys-b1268c23b4664fa0.rlib(notify.o)
            "_LSCopyApplicationURLsForBundleIdentifier", referenced from:
                _setApplication in libmac_notification_sys-b1268c23b4664fa0.rlib(notify.o)
          ld: symbol(s) not found for architecture x86_64

https://github.com/NixOS/nixpkgs/pull/168014
I've checked and the mac-notification library has been updated recently.
Wondering if this PR fixes issues for the aarch64-darwin folks ?

also regarding the notification feature, starship has a couple of features, I wonder if we could just put it behind a feature flag and make a PR for that.

@happysalada It looks like it used to be a feature that was removed and enabled by default in this PR.
From the looks of this comment, it seems that it was tested in a non-Nix environment on macOS, hence why the change went through. So this appears to be a uniquely us/Nix problem that we have to sort through to get to work.

I went ahead and asked upstream to make it optional again. They were cool about it.
I'm testing the build without the notify feature on my local.
you might want to check that all is good with https://github.com/NixOS/nixpkgs/pull/168558
happy to change things when we have found the problem (although I wouldn't personally spend too much time on it, it doesn't look like an easy solution).

Thanks @happysalada, starship now successfully builds. I'm happy to close this off unless someone has an objection?


Add ols-announce email to landing page.

This refers to the ols announce email without actually providing the email address<EMAIL_ADDRESS>

The link seems dead though? I just went to OLS3 and clicked the link and it took me here:
https://listserver.ebi.ac.uk/mailman/listinfo/ols-announce
I see this:

Correct link(s) has been added but do note the link's host sometimes is dead.


Store PDF2ACTOR mapping table as a World Setting

Allow the user to configure the PDF2ACTOR mapping in a text box in the module settings.

Done in 0.13.0


Flake8 requirements have changed (again)

See any of the broken builds.

Due to a new version of pep8... they are fixed in my PR here: https://github.com/biocore/qiita/pull/837

Thanks!
On (Feb-18-15|11:34), josenavas wrote:

Due to a new version of pep8... they are fixed in my PR here: https://github.com/biocore/qiita/pull/837

Reply to this email directly or view it on GitHub:
https://github.com/biocore/qiita/issues/864#issuecomment-74931756

#837 has been merged so closing this!


Eval during training

Hi,
I am trying to get customized eval scores during training. I follow the instruction from a previous issue:
https://github.com/hiyouga/LLaMA-Factory/issues/1104
I tried setting the predict_with_generate during training but got the error ValueError: predict_with_generate cannot be set as True while training. What is the right way of getting eval scores during the training, would you explain in more detail?

I subsequently tried removing the line that raises this ValueError, and I get errors like this
/lib/python3.10/site-packages/torch/nn/functional.py", line 3029, in cross_entropy     return torch._C._nn.cross_entropy_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index, label_smoothing) ValueError: Expected input batch_size (4095) to match target batch_size (15)

LLaMA Factory does not support getting eval scores during training. We could compute eval loss using the --val_size and --eval_steps options.

@hiyouga 为什么不支持？


Update algorithm to be simpler, more performant

Additionally, include some new tests.

Thanks a lot! :smile:


Use encrypted channels

Implement encrypted channels in joinstr
Details: https://gitlab.com/-/snippets/3620499
Related NIPs: 38, 48 and 112

Hey could you please tell me the tech stack required for this?

@VividhPandey003 Python and Nostr
See https://pypi.org/project/nostr-protocol/

Hmm, I haven't worked with it. Would you recommend me to learn it and work on it or should I leave it for somebody else to work on. I'd love your advice on this.


How to select schema registry region on 2.0.0?

I was reading this guide: https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-2-upgrade
and with the confluent_schema_registry_cluster going away, I'm not sure how to create new environments with an specific config of schema registry cluster config (package, region).
This is part of my module:
# Schema registry region
data "confluent_schema_registry_region" "schema_registry_region" {
  cloud   = var.schema_registry.cloud
  region  = var.schema_registry.region
  package = var.schema_registry.package
}

# Schema registry cluster
resource "confluent_schema_registry_cluster" "schema_registry_cluster" {
  package = data.confluent_schema_registry_region.schema_registry_region.package

  environment {
    id = confluent_environment.environment.id
  }

  region {
    id = data.confluent_schema_registry_region.schema_registry_region.id
  }
}

Without the resource, how can I tell confluent in which region to create the schema registry?
Having only the data means that we can't decide wether to create the schema registry cluster or not? and where?

@Israphel thanks for creating the issue!
The short answer is

The Stream Governance cluster will be enabled in the same region as your first Kafka cluster within the environment.

We'll be releasing a new version of TF Provider with an updated code for confluent_kafka_cluster resource soon and we'll update docs & examples accordingly and we expect it to look as follows:
resource "confluent_environment" "prod" {
  display_name = "Production"

  stream_governance {
    package = "ESSENTIALS"
  }
}

resource "confluent_kafka_cluster" "prod" {
  ...
  region = "us-west-2"
}

data "confluent_schema_registry_cluster" "essentials" {
  environment {
    id = confluent_environment.prod.id
  }
  # region is going to be "us-west-2" as well
}

but if I don't want that? my kafka clusters are us-east-1 and us-west-2, but my schema registry cluster is us-east-2

@Israphel , this is part of our Data Governance team moving customers away from managing Schema Registry Clusters in general. @akhileshm1 or @GunalKupta can comment more on details.

we had to start with the schema registry in us-east-2 because us-east-1 had extra cost. What's the deal now? any region without extra cost?

Schema Registry (SR) cluster will always be provisioned in the same region as the first Kafka cluster in the environment. given this, you can choose to deploy the Kafka cluster in the region that you prefer your SR cluster to be in. you can always choose to delete your Kafka cluster if you don't need it in that region. this will not delete your SR cluster.
in the event you already created the first Kafka cluster in a region you don't want your SR to be in and you don't want to re-create your environment, please reach out to Confluent support and we'll delete and re-provision the SR cluster in the region of your choosing.
hope that helps.

but about my previous question: In the Essentials package, only some regions had the SR withouyt extra cost. That remains? or now any region is without extra cost?

both Essentials and Advanced packages are available in all Confluent Cloud regions.

what I'm talking about is:
before this change, you created an environment and then a schema registry cluster. You used to get a list of regions to chose from and only some of them were without additional cost (like us-east-2), but us-east-1 had extra cost. Did that change? How do I know where to create the schema registry cluster without getting charged extra?
the only reason we have clusters in us-east-1 and us-west-2 but the schema registry cluster in us-east-2 is because of that very reason.

if you select Essentials package in your environment resource, your SR cluster will always be free (for first 100 schemas) regardless of the region. so, yes, Essentials package in us-east-1 is free.
https://docs.confluent.io/cloud/current/stream-governance/packages.html#governance-package-types
https://docs.confluent.io/cloud/current/stream-governance/packages.html#cloud-providers-and-region-support

I know you won't change your mind, but this path you're taking is super anti-IaC.
you're leaving the responsibility of one resource creation (schema registry) based on another irrelevant resource (kafka cluster).
Now the typical creation order of (environment+schema registry) -> clusters no longer works, because the data resource won't return anything until you create a cluster, forcing us to add dummy booleans to let the environment TF module know that now the schema registry was created (by another entity) and that it can finally read the data.

I will side with @Israphel with this one
We are writing terraform modules to use with Terragrunt
Makes no sense that I need to create a Cluster to get the SR data when it's an Environment resource and makes the relation between our modules weird at best, I would expect to get the endpoint and ID of the SR of the Environment after I create the Environment
Would be great if the Confluent team can reconsider this and make a better decision for a better IaC approach to this issue

feedback received. I agree it's not ideal. The challenge here is that in order to provision the SR cluster after environment creation, we need to know the region. We have no way of knowing that today until you create the first Kafka cluster, at which point we assume that the region of the first Kafka cluster is where you want your SR cluster to be in.
We'll take this feedback to see if we better support IaC use cases.

feedback received. I agree it's not ideal. The challenge here is that in order to provision the SR cluster after environment creation, we need to know the region. We have no way of knowing that today until you create the first Kafka cluster, at which point we assume that the region of the first Kafka cluster is where you want your SR cluster to be in. We'll take this feedback to see if we better support IaC use cases.

just allow us passing "region" or "schema_registry_cluster_region" when creating an environment, instead of assuming based on an unrelated resource.


@eessex => [Venice] Style QA

Covers a few items in https://github.com/artsy/force/issues/1237

Feel free to push to this PR for the body style QA if you'd like! It might produce less emails for people :)


feat: Enable issue edit to read body from stdin

When working with jira I found that setting the body from stdin is not supported in issue edit. It seemed easy to add.
If you're interested in this feature that does not break anything (as far as I can tell) please feel free to accept this MR. I'm of course open to suggestions for anything that can be improved.

Hi @erpel, apologies for the late response.
I don't exactly remember the reason behind this check, TBH. Perhaps it was overlooked when working on the initial feature. I think we can update the method StdinHasData to something like the one below, so that it considers both stdin and file redirection.
import "golang.org/x/crypto/ssh/terminal"

func StdinHasData() bool {
	if terminal.IsTerminal(int(os.Stdin.Fd())) {
		return false
	}
	return true
}

Thanks for looking into this.
I took a look at "golang.org/x/crypto/ssh/terminal" and its IsTerminal function. Since it's just a wrapper around functionality in "golang.org/x/term" which was an indirect dependency already I opted to use this instead. Let me know what you think.


Error happened while child-process was executing command task with gulp-run

Task in gulpfile.js like this,

Error message from running gulp as below,

i am sure jsdoc package is installed in the folder, because i could run the command successful manually,

my node.js version is 6.11.0
gulp local version is 3.9.1
jsdoc version is 3.5.5
the question is why the child-process was finding jsdoc conf.json under System folder instead of current working directory? is it an issue in gulp? what can i do to resolve it?
appreciate for your help!

the root cause is gulp-run use "cmd.exe /c jsdoc -c jsdoc/conf.json" for running in the child process if system is windows, system will find the file in the default directory if not assign, cwd parameter does not work.

the temporary solution i use is assigning the detailed path to the folder, like c:\d1\d2\conf.json, conf.json file is also modified if needed, then the error is gone.

i think there has other solutions, share it here if you think out a better one.


Adding includes to config brakes the plugin

Actual Behavior
I receive the errors Cannot read property 'schemaPath' of undefined and Cannot read property 'projectName' of undefined.
Expected Behavior
There should be no error and it should provide all the assistance.
Steps to Reproduce the Problem Or Description
I receive the errors only when I add the includes section to the config.
With only schemaPath it works ok (but only syntax, validation, hover and autocompletion, without jumping to fragment from import):
{
  "projects": {
    "my_project": {
      "schemaPath": "./server/src/generated-schema.graphql",
      "includes": ["./clients/public/src/**/*.gql"]
    }
  }
}

Specifications

GraphQL for VSCode Extension Version: 0.1.6
VSCode Version: 1.30.1
OS Name: Windows 10
OS Version: 1809

Logs Of TS Server || GraphQL Language Service
(node:43456) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'schemaPath' of undefined
(node:43456) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[Error - 1:47:41 PM] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: Cannot read property 'projectName' of undefined
  Code: -32603

@19majkel94 : Can you please provide a minimal reproduction of this in for of a Github issue? That would help me expedite a fix. Also, please try with yml version of the .graphqlconfig once, maybe format is the issue - this will help us corner out the issue faster. Thanks.

@divyenduz
Here is the reproduction repo:
https://github.com/19majkel94/vscode-graphql-bug
The hover feature doesn't work, when you open the query, it prints this errors in extensions output:
(node:19476) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'schemaPath' of undefined
(node:19476) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[Error - 5:01:48 PM] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: Cannot read property 'projectName' of undefined
  Code: -32603
(node:19476) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 5): TypeError: Cannot read property 'schemaPath' of undefined
[Error - 5:02:45 PM] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: Cannot read property 'projectName' of undefined
  Code: -32603
[Error - 5:02:45 PM] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: Cannot read property 'projectName' of undefined
  Code: -32603

@19majkel94 Thanks for the reproduction, I am able to reproduce this issue. Removing includes from the config file indeed makes hover work again.

@19majkel94 : I have a question, why do you want to include the queries (.gql) files? I think this would work if you include the schema file. Language features work with "definition" part of the GraphQL SDL i.e. type definitions etc and they should ignore (and not crash) on "executable" part of GraphQL SDL like queries, mutations.

@19majkel94 : For instance, in this reproduction, I made the following changes:
-schemaPath: ./server/src/schema.graphql
-includes: ["./client/src/**/*.graphql"]
+schemaPath: "./server/src/schema.graphql" # Added quotes
+includes: ["**/*.graphql"] # Changed includes

And it works: http://recordit.co/ns3OkAyjXN
I will still keep this issue open because it is a bug (to crash on wrong includes) and we should handle the error handling better but does making these changes make it work for you as well?
Please restart VSCode or reload the project after you change the .graphqlconfig.yaml file.

@divyenduz Based on the readme, I thought that includes is for pointing the files that should use seleced schema for autocomplete/validation:
{
  "projects": {
    "projectA": {
      "schemaPath": "./resources/schema.graphql",
      "includes": ["./projectA/graphql/*.graphql"]
    },
    "projectB": {
      "schemaPath": "../resources/schema.graphql",
      "includes": ["./projectB/graphql/*.graphql"]
    },
    "projectC": {
      "schemaPath": "./schema-for-projectC.graphql"
    }
  }
}

The reason why I want to add the includes is because of this:

To support language features like "go-to definition" across multiple files, please include includes key in the graphql-config per project.

I use imported fragments a lot and the extension shows me error about this:

But when I save the file, the error is gone (it just don't validate the fragment, I can place there foo or bar and it's ok too 😞

I think this would work if you include the schema file. Language features work with "definition" part of the GraphQL SDL

With includes: ["**/*.graphql"] I'm still not able do make hover/jump to definition work in the schema.graphql file.

From comment in related issue #107

@remy You've probably moved on by now, but I found the issue.
includes should be include (not plural).
That's it.

in the latest version, graphql-config@3 uses documents, though include should still work for backwards compatibility. thanks @chloerice for the support help!


Build on Docker Hub fails without error message (works locally)

I've setup a new Dockerfile to create an Android build and test environment in docker. Everything works flawlessly on my local machine, but after I've pushed the repository to GitHub and created an automated build in the Docker Hub, I get an obscure Build Error.
Here're the build results:
https://registry.hub.docker.com/u/neroinc/fedora-android/build_id/32532/code/by8ztdthdvqo3ws8g5h9bsd/
The Error status shows a very long string seemingly caused by the unzip command. However, I have no explanation what exactly is going wrong. Maybe an exit code or the formatting of the strings?
Finally the log concludes with Successfully built 1c290fae4b0a. So shouldn't the overall result be successful as well?
I have solved (worked around) this by using unzip -q to suppress output. But I wonder if this is expected behavior? Especially as there's no obvious indication that anything went wrong when running locally.

I suspect that its just some output to stdout, but y, v odd - @kencochrane maybe you can help?

@dustinlacewell has this been fixed?

Hi @arabold I sincerely hope you are not having this problem anymore. But since it is hub specific and not a bug with anything in this repo I am going to close this, but if you are still having issues please email<EMAIL_ADDRESS>and they can help!


Add ability to bind a shared service instance

As an app dev (receiver), I can see service instances that have been shared with me #150801602
NOTE: This PR builds on top of #932 &  #940 which should be merged first. The actual changes ontop of #940 can be viewed in this DIFF.
Why
The services api team have been working on service instance sharing feature as documented in these
inception notes.
This feature will allow space developers to share service instances into other spaces for binding. You can see a broad summary in these slides.
API design doc
What
This PR allows creation of binds to shared service instances through the API. It allows for POSTing to the  /v2/service_binding endpoint in a space with a shared instance.
Changes:

Apps are bindable if the service instance is in the same space OR shared into the space.

Notable things that are not in this PR but are addressed in future stories are:

Supporting all the API endpoints required for cf bind-service
APIs for retrieving bindings

Notes:

Additional CATs for this change can be found here.

While the changes in this PR include the ancestor commits of  #932 & #940 it only technically depends on #932. We have included both as that's how we have naturally been working on this work (our feature master branch). Let us know if this poses an issue.
PR

[X] I have viewed signed and have submitted the Contributor License Agreement
[X] I have made this pull request to the master branch
[X] I have run all the unit tests using bundle exec rake
[X] I have run CF Acceptance Tests on bosh lite

Sapi

Hi @Samze,
We also noticed that there aren't any docs in this PR. This would actually return shared service bindings (if they existed). Except there's no way to create them yet. To clarify, is there a separate story for those docs?

Hello @lisamcho
Thanks for the feedback! We removed the extra "it"s and replaced the double-nested if with a single line.
In your comment that "there's no way to create them yet," did you mean there's no way to create shared service instances, or bindings to shared service instances?
This merged PR added the ability to "create" shared instances (i.e., share a service instance). Also in this PR we added documentation in the v3 docs, which introduces the concept of shared service instances, and how to create them.
If you meant the bindings themselves, this PR adds the ability to create bindings to shared service instances. We didn't see the need for API-level doc changes, since the create service binding API endpoint remains the same.
Also we realised that most of the commits had the wrong story id, also the link at the top of this PR links to the wrong story. The correct story is #150801602. Sorry about that.
Thanks again,
Alex and @jenspinney

Thanks! I didn't see that docs had already been merged in.


[Package Request]: Hashicorp Terraform

Package Requested

[ ] I would like someone else to build the manifest.
[ ] I would like help so I can submit the manifest.
[X] I have performed a search and couldn't find this package.
[ ] I have checked that the installer for this package is not a standalone or portable executable or a .zip file
[ ] I think there is a new version available and I have provided the URL.

Please provide the following information
Publisher: Hashicorp
Publisher Url: https://www.terraform.io/
Package Name: Hashicorp.Terraform
Description: Terraform is an open-source infrastructure as code software tool that provides a consistent CLI workflow to manage hundreds of cloud services. Terraform codifies cloud APIs into declarative configuration files.
Package Version: 1.1.4
Installer URL: https://releases.hashicorp.com/terraform/1.1.4/terraform_1.1.4_windows_amd64.zip
Current Package Identifier (for new versions):
Note:
There is currently no MSI installer, only a zip with a single-exe.

@denelon Is this still blocked as the .zip branches following the chains seem to be resolved and merged?

@denelon Is this still blocked as the .zip branches following the chains seem to be resolved and merged?

https://github.com/microsoft/winget-pkgs/issues/87300


Rice Patches

Changes I made to get Tomoto compiling with Rice header version.
rice_patch.zip

Thanks @cfis.