-
Notifications
You must be signed in to change notification settings - Fork 60
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
feat(compute/hashfiles): add hash-files subcommand #943
Conversation
if !c.Globals.Flags.Quiet { | ||
text.Warning(out, "This command is deprecated. Use `fastly compute hash-files` instead.") | ||
text.Break(out) | ||
} | ||
|
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.
👍
pkg/commands/compute/hashfiles.go
Outdated
) | ||
|
||
const ( | ||
maxPackageSize = 100000000 // 100MB in bytes |
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.
Q: any specific reason for this number?
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.
Untested but code LGTM.
Thanks for taking this to the end of the line 🙏
534d479
to
b3a4d0a
Compare
This PR deprecates the
compute hashsum
command in favour ofcompute hash-files
which aligns with the newhash_files
metadata property exposed by the Fastly Package API endpoint.