Skip to content

fix(coderd): set mode and modtime correctly when converting from zip to tar #12476

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

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Mar 8, 2024

STACK:
#12477
#12476 <-- you are here
#12475
#12479

This became apparent when adding tests in #12477

@johnstcn johnstcn self-assigned this Mar 8, 2024
@johnstcn johnstcn changed the title fix(coderd): set mode and modtime correctly when converting from zip-… fix(coderd): set mode and modtime correctly when converting from zip to tar Mar 8, 2024
@johnstcn johnstcn requested a review from mtojek March 8, 2024 16:25
@johnstcn johnstcn marked this pull request as ready for review March 8, 2024 16:25
@johnstcn johnstcn requested a review from mafredri March 8, 2024 16:26
Mode: 0o644,
Name: file.Name,
Size: file.FileInfo().Size(),
Mode: int64(file.Mode()),
Copy link
Member Author

Choose a reason for hiding this comment

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

sadly the conversion is required here

Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

👍

no tests needed?

@johnstcn
Copy link
Member Author

👍

no tests needed?

See #12477 -- this fixes the tests. I suppose these should probably have been the one PR.

@johnstcn johnstcn merged commit ad47dc9 into cj/fileszip-tests Mar 11, 2024
@johnstcn johnstcn deleted the cj/fileszip-fixes branch March 11, 2024 09:10
@github-actions github-actions bot locked and limited conversation to collaborators Mar 11, 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.

3 participants