-
Notifications
You must be signed in to change notification settings - Fork 65
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
validate package size doesn't exceed limit #380
Conversation
if pkgSize > PackageSizeLimit { | ||
return pkgName, pkgPath, errors.RemediationError{ | ||
Inner: fmt.Errorf("package size is too large (%d bytes)", pkgSize), | ||
Remediation: errors.PackageSizeRemediation, | ||
} | ||
} |
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, I like the remediation pointing to the resource limits page 👍
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.
Looks great 👍
831d4f6
to
87618ed
Compare
// current package size limit. | ||
var PackageSizeRemediation = strings.Join([]string{ | ||
"Please check our Compute@Edge resource limits:", | ||
"https://docs.fastly.com/products/compute-at-edge-billing-and-resource-limits#resource-limits", |
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.
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.
Thanks @triblondon. Once that content is available there we should update the code to reference the new location.
Fixes #362