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

Remove leading ./ from zip entries #682

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

DaveCTurner
Copy link
Contributor

The leading . on zip entry names is ignored by (at least) the Mac OS
unzip utility which means that every file appears to have an absolute
path, so unpacking a diagnostics bundle emits a warning for every entry:

warning:  stripped absolute path spec from ...

There's no need to prefix every entry name with ./, so this commit
removes the prefix to avoid these warnings.

The leading `.` on zip entry names is ignored by (at least) the Mac OS
`unzip` utility which means that every file appears to have an absolute
path, so unpacking a diagnostics bundle emits a warning for every entry:

    warning:  stripped absolute path spec from ...

There's no need to prefix every entry name with `./`, so this commit
removes the prefix to avoid these warnings.
@DaveCTurner DaveCTurner requested a review from a team as a code owner February 19, 2024 10:11
Copy link

@andymjames andymjames left a comment

Choose a reason for hiding this comment

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

Hey X-School friend! I left for a while, but I'm back!

This looks pretty straight-forward, but since I never got too familiar with this particular project, I am going to get some extra eyes on here and guidance on how/if we test a PR like this.

I also feel like I need to make sure that nobody has some strong objection to the change (but I think you made a pretty good case for why this change would be good idea).

@DaveCTurner
Copy link
Contributor Author

Hey @andymjames it's been a while, welcome back! No rush on this, it's just got to me enough times to chase down the problem :)

@pickypg pickypg merged commit 420b260 into elastic:main Jun 24, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants