Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Build with codesign takes a long time when 'nodegit' is in my dependencies #1147
I am trying to build a project that has
The build takes a long time (i.e. never finishes). On my MacBook Pro (Retina, Mid 2012) running MacOS Sierra, the "Rebuilding" and "Packaging" steps take ~5 minutes, which is a bit slow. For the "Signing" step, however, I've waited 30+ minutes and never seen it finish.
A minimal package.json that reproduces the issue looks like this:
(To repro the signing slowness, you would need to get a developer certificate, etc.)
Based on the output of
With that in mind, these are my hypotheses:
Am I onto something with any of these? Any tips or suggestions?
Apologies if I've missed some important note in the documentation that pertains to this.
So it looks like codesign is going deep into hidden folders, including VCS databases, and signing all of those entries too. That's a lot to sign. Which explains the wait.
My workaround is to add some
First I exclude the whole
I did this through trial and error, so my file patterns are probably excluding some critical file. But this at least gets the build working, and I don't initially see any problems with
I have a similar problem, but I don't want to use
For me codesign, the final package