-
Notifications
You must be signed in to change notification settings - Fork 63
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
Fixes the issue with modified time affecting zip contents #16
Conversation
Archive contains file header that contains file modification time, whenever this time changes (ie. git checkout) archive checksum changes event if content is the same. There is no way to know what the mtime was so we always set it to zero.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
feature wise it LGTM!
I would just prefer to have one less test to fix when I try to get things running on windows.
archive/zip_archiver_test.go
Outdated
func TestZipArchiver_FileModified(t *testing.T) { | ||
const ( | ||
zipFilePath = "archive-file.zip" | ||
toZipPath = "./test-fixtures/test-file.txt" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to use filepath
for all paths. I know there are a tin of broken tests as it is, but I would like to get testing to work on windows someday.
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
No description provided.