You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not only that, darwin_darwin.go also doesn't include the name of the backend like the cng and openssl files do in their names. And one step further: these files are serving the same purpose, so they should share a prefix to be easier to find and more readable.
This PR successfully improves the platform-specific filename conventions across the patches. The changes are consistent and follow the repository guidelines.
Summary of Changes
The PR renames platform-specific files to use clearer, more consistent naming conventions:
Filename suffix convention: All files correctly use _darwin.go, _linux.go, _windows.go suffixes to indicate platform constraints, eliminating the redundant "darwin_darwin" pattern.
Build tag adherence: The build tags properly follow guideline Build a Docker prereqs image for linux-amd64 longtest #5 - they specify only //go:build goexperiment.systemcrypto without duplicating the OS/arch that's already expressed in the filename suffix.
Unified naming: Files serving the same purpose across platforms now share consistent prefixes (backend_*, systemfips_*, rsa_*) making them easier to find and more readable.
No extraneous blank lines: The code maintains appropriate spacing between functions and import groups per guideline Skip tests during official builds #6.
Patch organization: All related platform-specific changes are grouped in the correct patches (backend implementation in 0003, crypto usage in 0004).
The renaming makes the codebase more maintainable and follows Go conventions. Great improvement! 🎉
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows up on #2157 (comment)
AI review is totally right IMO, darwin_darwin is redundant ("stuttering") for no good reason:
Not only that, darwin_darwin.go also doesn't include the name of the backend like the cng and openssl files do in their names. And one step further: these files are serving the same purpose, so they should share a prefix to be easier to find and more readable.
Updated patches to change names to:
(Can use
git go-patch reviewto confirm that these are just renames.)