-
Notifications
You must be signed in to change notification settings - Fork 94
fix: al2 uploads need to have function name in SHA #509
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
✅ Deploy Preview for open-api ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Nice one!
go/porcelain/deploy.go
Outdated
@@ -979,6 +979,7 @@ func createHeader(archive *zip.Writer, i os.FileInfo, runtime string) (io.Writer | |||
return archive.CreateHeader(&zip.FileHeader{ | |||
CreatorVersion: 3 << 8, // indicates Unix | |||
ExternalAttrs: 0777 << 16, // -rwxrwxrwx file permissions | |||
Comment: i.Name(), |
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.
Tiny one, but could we add a comment here so that future us are not 🤯 trying to figure out why?
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.
yes! done in 22d8ab9
fix: trigger patch release for #509
There's a detailed writeup of why this is necessary in https://linear.app/netlify/issue/COM-95/bug-what-happens-when-we-upload-two-functions-with-the-exact-identical.
In short: Netlify requires two different functions to have separate hashsums. Before, this was the case because every ZIP contained the function name as the entrypoint filename. With the changes in #505, this will now always be
bootstrap
, so it doesn't effect the hashsum anymore. By adding the filename as a comment, we get back this behaviour.