The darwin notarytool builtin isn't included in the packagedxcbuild which is archived at this time. When using gon this can cause problems signing:
$ gon .gon.hcl
': exit status 1: ==> βοΈ Signing files...
Code signing successful
==> π¦ Creating dmg...
This will open Finder windows momentarily.
Dmg file created: ./dist/etime_darwin_arm64_v1.0.1-28-g71496c4.dmg
Signing dmg...
Dmg created and signed
==> π Notarizing...
Path: ./dist/etime_darwin_arm64_v1.0.1-28-g71496c4.dmg
Submitting file for notarization...
Error notarizing
βοΈ Error notarizing:
1 error occurred:
* error submitting for notarization:
/nix/store/l26jpz45c1sdvi52v06ajr6qz7qz39b7-xcodebuild-0.1.2-pre/bin/xcrun: line 42: exec: notarytool: not found
A workaround exists to use some default programs when using gon in a development shell:
devShells.gon =
if pkgs.stdenv.isDarwin then
pkgs.mkShell
{
packages = with pkgs; [
go
gon
goreleaser
];
+ shellHook = ''
+ export PATH=/usr/bin:$PATH
+ '';
}
else
null;
The darwin
notarytool
builtin isn't included in the packaged xcbuild which is archived at this time. When usinggon
this can cause problems signing:A workaround exists to use some default programs when using
gon
in a development shell: