Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid max read size reached error when cmp imported files (#618)
The equalfile golang package defaults to max read size of 10**10 bytes unless both files use io.LimitedReader to set an upper bound on the read. In stacker import we already stat the two files being compared and know the actual file size. This PR constructs two io.LimitedReader's for each file being compared. Fixes: #617 Signed-off-by: Ryan Harper <[email protected]>
- Loading branch information