Skip to content
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

Merged
merged 2 commits into from
Mar 23, 2018

Conversation

paultyng
Copy link
Contributor

No description provided.

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.
@paultyng paultyng changed the title Pull/15/head Fixes the issue with modified time affecting zip contents Mar 23, 2018
Copy link
Member

@mbfrahry mbfrahry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Member

@jbardin jbardin left a 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.

func TestZipArchiver_FileModified(t *testing.T) {
const (
zipFilePath = "archive-file.zip"
toZipPath = "./test-fixtures/test-file.txt"
Copy link
Member

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.

Copy link

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants