-
Notifications
You must be signed in to change notification settings - Fork 245
fix: sign the windows setup .exe COMPASS-8945 COMPASS-8950 #6709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
40e6372 to
7e16bc0
Compare
0817504 to
3890616
Compare
| "@mongodb-js/my-queries-storage": "^0.22.0", | ||
| "@mongodb-js/prettier-config-compass": "^1.2.0", | ||
| "@mongodb-js/sbom-tools": "^0.7.0", | ||
| "@mongodb-js/signing-utils": "^0.3.7", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the bug was that signtool.go is doing node -e 'require("@mongodb-js/signing-utils")' from the packages/compass folder and that node module doesn't exist there.
In the past it probably worked because the dep was hoisted and then it broke because now it is not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think doing something like npx run sign -w @mongodb-js/hadron-build -- path-to-file from signtool.go would be a cleaner fix. I'll try that in a follow-up.
| if err != nil { | ||
| fmt.Println("Error signing the file") | ||
| fmt.Printf("%s\n", stdoutStderr) | ||
| log.Println(err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally this would be log.fatal(err) but then we don't see any of the logging and electron winstaller throws a huge error, none of which is helpful. Maybe it doesn't flush its subprocess's output? I'm not sure.
Uh oh!
There was an error while loading. Please reload this page.