fix/small-fixes #1

Merged
fuzzy merged 10 commits from fix/small-fixes into main 2026-05-01 11:07:29 +00:00
Owner
No description provided.
- add yaml document start marker (---)
- remove optional flag from golangci-lint hook description
- keep existing commented configuration for reference

# Previous message:
fix: remove gofmt args and update golangci-lint comment
refactor: remove unused flate import and deflate compression registration code
Some checks failed
Test / test-linux (pull_request) Successful in 4m29s
Test / lint (pull_request) Failing after 1m14s
Test / security (pull_request) Successful in 47s
21eb42eef4
# Previous message:
refactor: remove unused flate import and deflate compressor registration
The changes remove the unused `headerFromInfo` function and `metadataDirInfo` type from the cpio package. These were dead code that were no longer being referenced or used in the implementation, cleaning up the codebase and removing unnecessary complexity. The `metadataDirInfo` type was replaced with a direct struct literal in the writer.go file, and the `headerFromInfo` function was removed entirely. The test files were also updated to include early returns when critical entries are not found, improving test robustness.
chore: remove unused skipInternalMeta field from tar writer
perf: improve tar test by explicitly discarding metadata file data
- Removed getPassword and getEncryptionMethod functions that were unused
- Removed splitSize variable and SetSplitSize function
- Added blank identifier for Seek return value in reader.go
- Added blank identifiers for newRa and newSize variables in reader.go
- Removed pos field from readerAt struct
- Added blank identifier for SetCompressionMethod and SetCompressionLevel return values in tests
- Added return statement in TestBzip2Compression test function
The changes update test cases to properly handle the return values from rand.Read() calls, using blank identifiers to ignore the error return while maintaining the same functionality. This improves test robustness by explicitly handling the error return, though the actual random data generation behavior remains unchanged.
Additionally, the repair writer implementation was cleaned up by removing unused imports (crypto/sha256, encoding/hex) and the unused pathHash helper function, reducing code complexity and dependencies.
chore: chore(test): silence unused return values in random data generation
All checks were successful
Test / test-linux (pull_request) Successful in 4m18s
Test / lint (pull_request) Successful in 1m58s
Test / security (pull_request) Successful in 1m21s
Test / test-linux (push) Successful in 4m34s
Test / lint (push) Successful in 2m0s
Test / security (push) Successful in 1m24s
1212a121f1
fuzzy scheduled this pull request to auto merge when all checks succeed 2026-05-01 11:06:45 +00:00
fuzzy merged commit 1212a121f1 into main 2026-05-01 11:07:29 +00:00
fuzzy deleted branch fix/small-fixes 2026-05-01 11:07:30 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/manta-archiver!1
No description provided.