Skip to content

treewide: remove usage of CSC_IDENTITY_AUTO_DISCOVERY - #523621

Merged
khaneliman merged 10 commits into
NixOS:masterfrom
TomaSajt:electron-builder-mac-identity
Jun 14, 2026
Merged

khaneliman merged 10 commits into
NixOS:masterfrom
TomaSajt:electron-builder-mac-identity

Conversation

@TomaSajt

@TomaSajt TomaSajt commented May 24, 2026 •

Copy link
Copy Markdown
Contributor

As per the docs we can use both CSC_IDENTITY_AUTO_DISCOVERY="false" and -c.mac.identity=null to disable signing.
IMO we should only use one of them and -c.mac.identity=null is the more robust of the two.

In some packages both methods were being used.

If anyone is against me changing their package, leave a review.

For gridtracker2 and drawio I also fixed the issue where the electron-dist directory would be included inside the .asar file.

Things done

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. labels May 24, 2026
@TomaSajt
TomaSajt force-pushed the electron-builder-mac-identity branch 2 times, most recently from f1d302a to df9a909 Compare May 24, 2026 15:45
@TomaSajt
TomaSajt marked this pull request as ready for review May 24, 2026 15:56
@nixpkgs-ci nixpkgs-ci Bot added the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label May 24, 2026
@nixpkgs-ci nixpkgs-ci Bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label May 24, 2026
@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels May 25, 2026
@TomaSajt
TomaSajt force-pushed the electron-builder-mac-identity branch from df9a909 to 17b5fb2 Compare May 26, 2026 16:07
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label May 28, 2026
@TomaSajt
TomaSajt force-pushed the electron-builder-mac-identity branch from 17b5fb2 to 0737b40 Compare May 30, 2026 13:53
@TomaSajt TomaSajt added the backport release-26.05 Backport PR automatically label May 30, 2026
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label May 30, 2026
@TomaSajt
TomaSajt force-pushed the electron-builder-mac-identity branch 2 times, most recently from 89d8bd4 to 8439cd5 Compare May 30, 2026 14:11
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jun 8, 2026
@TomaSajt
TomaSajt force-pushed the electron-builder-mac-identity branch from 8439cd5 to 144b6ca Compare June 8, 2026 17:45
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Jun 8, 2026
@khaneliman

Copy link
Copy Markdown
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 523621
Commit: 144b6ca3a6c9a6a3d1846216b5db684ebce02a88


x86_64-linux

⏩ 1 package marked as broken and skipped:
  • bitwarden-desktop
✅ 11 packages built:
  • gridtracker2
  • kando
  • mqtt-explorer
  • pandoc-drawio-filter
  • drawio
  • drawio-headless
  • super-productivity
  • teams-for-linux
  • python313Packages.mkdocs-drawio-exporter
  • python314Packages.mkdocs-drawio-exporter
  • voicevox

aarch64-linux

⏩ 1 package marked as broken and skipped:
  • bitwarden-desktop
✅ 11 packages built:
  • drawio
  • kando
  • mqtt-explorer
  • pandoc-drawio-filter
  • python313Packages.mkdocs-drawio-exporter
  • python314Packages.mkdocs-drawio-exporter
  • super-productivity
  • teams-for-linux
  • drawio-headless
  • gridtracker2
  • voicevox

aarch64-darwin

⏩ 1 package marked as broken and skipped:
  • bitwarden-desktop
❌ 6 packages failed to build:
  • drawio-headless
  • pandoc-drawio-filter
  • drawio
  • python313Packages.mkdocs-drawio-exporter
  • python314Packages.mkdocs-drawio-exporter
  • super-productivity
✅ 7 packages built:
  • gridtracker2
  • kando
  • mqtt-explorer
  • opencode-desktop
  • signal-desktop
  • teams-for-linux
  • voicevox

drawio
Flipping fuses for:  /nix/var/nix/builds/nix-14040-1255073275/source/dist/mac-arm64/draw.io.app
  • skipped macOS code signing  reason=identity explicitly is set to null
  • arm64 requires signing, but identity is set to null and signing is being skipped
Quick Look: setting up preview extension...
Quick Look: using viewer from /nix/var/nix/builds/nix-14040-1255073275/source/drawio/src/main/webapp/js/viewer-static.min.js
Quick Look: setup complete
Quick Look: no signing identity found, using ad-hoc signing
/bin/sh: codesign: command not found
  ⨯ Command failed: codesign -f -s "-" --entitlements "/nix/var/nix/builds/nix-14040-1255073275/source/build/quicklook-entitlements.plist" --options runtime "/nix/var/nix/builds/nix-14040-1255073275/source/dist/mac-arm64/draw.io.app/Contents/PlugIns/PreviewExtension.appex"  failedTask=build stackTrace=Error: Command failed: codesign -f -s "-" --entitlements "/nix/var/nix/builds/nix-14040-1255073275/source/build/quicklook-entitlements.plist" --options runtime "/nix/var/nix/builds/nix-14040-1255073275/source/dist/mac-arm64/draw.io.app/Contents/PlugIns/PreviewExtension.appex"
    at genericNodeError (node:internal/errors:985:15)
    at wrappedFn (node:internal/errors:539:14)
    at checkExecSyncError (node:child_process:925:11)
    at execSync (node:child_process:997:15)
    at signQuickLookExtension (file:///nix/var/nix/builds/nix-14040-1255073275/source/build/notarize.mjs:209:3)
    at notarizing (file:///nix/var/nix/builds/nix-14040-1255073275/source/build/notarize.mjs:235:3)
    at emitInternal (/nix/var/nix/builds/nix-14040-1255073275/source/node_modules/app-builder-lib/src/util/asyncEventEmitter.ts:61:31)
    at AsyncEventEmitter.emit (/nix/var/nix/builds/nix-14040-1255073275/source/node_modules/app-builder-lib/src/util/asyncEventEmitter.ts:68:26)
    at Packager.emitAfterSign (/nix/var/nix/builds/nix-14040-1255073275/source/node_modules/app-builder-lib/src/packager.ts:351:5)
    at MacPackager.doSignAfterPack (/nix/var/nix/builds/nix-14040-1255073275/source/node_modules/app-builder-lib/src/platformPackager.ts:443:7)
\
super-productivity
✅ procrastination-buster completed (1.2s)

📦 Processing sync-md...
Building...
✅ Copied dist to assets (sync-md)
✅ sync-md completed (0.3s)

📦 Processing voice-reminder...
✅ Copied 3/3 files to assets
✅ voice-reminder completed (0.0s)

📦 Processing yesterday-tasks-plugin...
✅ Copied 4/4 files to assets
✅ yesterday-tasks-plugin completed (0.0s)

📊 Build Summary:
Total packages: 15
Successful: 15
Total time: 17.0s
Assertion failed: (errno == EINTR), function uv__io_poll, file kqueue.c, line 279.

Comment thread pkgs/by-name/dr/drawio/package.nix Resolved
@ofborg ofborg Bot removed the ofborg-internal-error Ofborg encountered an error label Jun 10, 2026
@khaneliman

Copy link
Copy Markdown
Contributor

Sorry, forgot about this. Looks like it needs a rebase/conflict resolve.

@nixpkgs-ci nixpkgs-ci Bot added 2.status: merge conflict This PR has merge conflicts with the target branch 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Jun 14, 2026
@TomaSajt
TomaSajt force-pushed the electron-builder-mac-identity branch from 04b7662 to f701f68 Compare June 14, 2026 16:14
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Jun 14, 2026
@TomaSajt

Copy link
Copy Markdown
Contributor Author

Done rebasing.

Note to self: When backporting the changes in bitwarden-desktop, don't forget to add the -c.mac.identity=null back, since that hasn't been backported.

@khaneliman

Copy link
Copy Markdown
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 523621
Commit: f701f68ba0db315505da52c243e007922328de05


x86_64-linux

⏩ 1 package marked as broken and skipped:
  • bitwarden-desktop
✅ 11 packages built:
  • drawio
  • drawio-headless
  • gridtracker2
  • kando
  • mqtt-explorer
  • pandoc-drawio-filter
  • python313Packages.mkdocs-drawio-exporter
  • python314Packages.mkdocs-drawio-exporter
  • super-productivity
  • teams-for-linux
  • voicevox

aarch64-linux

⏩ 1 package marked as broken and skipped:
  • bitwarden-desktop
✅ 11 packages built:
  • drawio
  • drawio-headless
  • gridtracker2
  • kando
  • mqtt-explorer
  • pandoc-drawio-filter
  • python313Packages.mkdocs-drawio-exporter
  • super-productivity
  • python314Packages.mkdocs-drawio-exporter
  • teams-for-linux
  • voicevox

aarch64-darwin

⏩ 1 package marked as broken and skipped:
  • bitwarden-desktop
❌ 1 package failed to build:
  • super-productivity
✅ 12 packages built:
  • drawio
  • drawio-headless
  • gridtracker2
  • kando
  • opencode-desktop
  • mqtt-explorer
  • pandoc-drawio-filter
  • python313Packages.mkdocs-drawio-exporter
  • python314Packages.mkdocs-drawio-exporter
  • signal-desktop
  • teams-for-linux
  • voicevox

super-productivity
✅ procrastination-buster completed (2.1s)

📦 Processing sync-md...
Building...
✅ Copied dist to assets (sync-md)
✅ sync-md completed (0.5s)

📦 Processing voice-reminder...
✅ Copied 3/3 files to assets
✅ voice-reminder completed (0.0s)

📦 Processing yesterday-tasks-plugin...
✅ Copied 4/4 files to assets
✅ yesterday-tasks-plugin completed (0.0s)

📊 Build Summary:
Total packages: 15
Successful: 15
Total time: 7.3s
Assertion failed: (errno == EINTR), function uv__io_poll, file kqueue.c, line 279.

@khaneliman khaneliman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super-productivity pre-existing failure, probably related to a recent npm / pnpm bump

@khaneliman
khaneliman added this pull request to the merge queue Jun 14, 2026
Merged via the queue into NixOS:master with commit b69bd48 Jun 14, 2026
25 checks passed
@nixpkgs-ci

nixpkgs-ci Bot commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-26.05:

@github-actions github-actions Bot added the 8.has: port to stable This PR already has a backport to the stable release. label Jun 14, 2026
@eclairevoyant

Copy link
Copy Markdown
Contributor

FYI, if more than 16 or so reviewers would get pinged, CI won't ping everyone involved. I don't theoretically have an objection, but there was basically no way for me to know about this PR beforehand.

@eclairevoyant eclairevoyant mentioned this pull request Jun 16, 2026
5 of 14 tasks
@TomaSajt

Copy link
Copy Markdown
Contributor Author

Yeah, sorry, I requested reviews from several people, but I guess you were left out. I'll maybe manually @ maintainers next time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 12.approvals: 2 This PR was reviewed and approved by two persons. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. backport release-26.05 Backport PR automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants