Skip to content

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

Merged
johnstcn merged 2 commits into
cj/fileszip-testsfrom
cj/fileszip-fixes
Mar 11, 2024
Merged

fix(coderd): set mode and modtime correctly when converting from zip to tar#12476
johnstcn merged 2 commits into
cj/fileszip-testsfrom
cj/fileszip-fixes

Conversation

@johnstcn
Copy link
Copy Markdown
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
Comment thread coderd/fileszip.go Outdated
Comment thread coderd/fileszip.go
Mode: 0o644,
Name: file.Name,
Size: file.FileInfo().Size(),
Mode: int64(file.Mode()),
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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