Major Enhancement: Upgrade Go version, add tests, GitHub workflows, symlink support, and more!#13
Open
ayoub3bidi wants to merge 19 commits intoThink-iT-Labs:mainfrom
Open
Major Enhancement: Upgrade Go version, add tests, GitHub workflows, symlink support, and more!#13ayoub3bidi wants to merge 19 commits intoThink-iT-Labs:mainfrom
ayoub3bidi wants to merge 19 commits intoThink-iT-Labs:mainfrom
Conversation
…helper function from tests
…CLI to support JSON output format
…ails for improved performance
…on at build time in root command
… for directory hashing
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Hi there!
I found a few issues while exploring the repo and prepared fixes and minor improvements to make the code more robust.
This PR introduces significant improvements to dirhash that enhance its reliability, usability, and functionality:
These changes transform dirhash from a basic directory hashing tool into a robust, production-ready utility suitable for enterprise use cases and complex directory structures.
What's New
Enhanced Error Handling
log.Fatal()Symbolic Link Support
Performance Improvements
Technical Details
Library API Changes
New Symlink Engine
walkDirWithSymlinks()- Core symlink-aware traversalhandleSymlink()- Specialized symlink processingError Handling Improvements
fmt.Errorf()and%wverbTesting
New Test Coverage
Test Results
Use Cases Unlocked
Before
# Limited to simple directories dirhash sha256 simple_project/After
Issues Resolved: #5, #6, #9, #12
Type: Enhancement
Breaking Changes: None (CLI), Minor (Library API)
Test Coverage: Comprehensive