Skip to content
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

Merged
merged 5 commits into from
May 18, 2023

Conversation

Integralist
Copy link
Collaborator

This PR deprecates the compute hashsum command in favour of compute hash-files which aligns with the new hash_files metadata property exposed by the Fastly Package API endpoint.

Screenshot 2023-05-18 at 17 14 30

@Integralist Integralist added enhancement New feature or request deprecated This issue/feature is deprecated labels May 18, 2023
@Integralist Integralist requested a review from fgsch May 18, 2023 16:16
Comment on lines +39 to +43
if !c.Globals.Flags.Quiet {
text.Warning(out, "This command is deprecated. Use `fastly compute hash-files` instead.")
text.Break(out)
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

)

const (
maxPackageSize = 100000000 // 100MB in bytes
Copy link
Member

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?

Copy link
Member

@fgsch fgsch left a 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 🙏

@Integralist Integralist merged commit 2d4de81 into main May 18, 2023
@Integralist Integralist deleted the integralist/hashfiles branch May 18, 2023 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecated This issue/feature is deprecated enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants