-
Notifications
You must be signed in to change notification settings - Fork 18.1k
mime: support reading shared mime-info database on unix systems #45271
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
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! |
This PR (HEAD: dcda643) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/305230 to see it. Tip: You can toggle comments from me using the |
Message from Go Bot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
Message from Ian Lance Taylor: Patch Set 1: Run-TryBot+1 (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
Message from Go Bot: Patch Set 1: SlowBots beginning. Status page: https://farmer.golang.org/try?commit=0a3781ab Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
This PR (HEAD: 274c055) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/305230 to see it. Tip: You can toggle comments from me using the |
This PR (HEAD: cf3f8f0) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/305230 to see it. Tip: You can toggle comments from me using the |
This adds support for reading the FreeDesktop Shared MIME-info Database on Unix systems, if it exists. It should make lookups work on systems where the mime.types files are not present and should lead to better mimetype lookup in general. If the shared mimetype database does not exist, we will fall back to reading mime.types files in common locations. Related to a bug on Solus bugtracker: https://dev.getsol.us/T9394 This change makes the mime package work on Solus.
Message from Jacob Alz: Patch Set 5: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
Message from Ian Lance Taylor: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
This PR (HEAD: 1b573c2) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/305230 to see it. Tip: You can toggle comments from me using the |
Message from Jacob Alz: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
Message from Ian Lance Taylor: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
This PR (HEAD: cb06878) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/305230 to see it. Tip: You can toggle comments from me using the |
Message from Jacob Alz: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
Message from Ian Lance Taylor: Patch Set 7: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
This PR (HEAD: 01d5637) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/305230 to see it. Tip: You can toggle comments from me using the |
Message from Jacob Alz: Patch Set 8: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
Message from Ian Lance Taylor: Patch Set 8: Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
Message from Go Bot: Patch Set 8: SlowBots beginning. Status page: https://farmer.golang.org/try?commit=64ebb499 Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
Message from Go Bot: Patch Set 8: Build is still in progress... Other builds still in progress; subsequent failure notices suppressed until final report. Consult https://build.golang.org/ to see whether they are new failures. Keep in mind that TryBots currently test exactly your git commit, without rebasing. If your commit's git parent is old, the failure might've already been fixed. Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
Message from Ian Lance Taylor: Patch Set 8: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
This PR (HEAD: d5fbe8c) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/305230 to see it. Tip: You can toggle comments from me using the |
Message from Jacob Alz: Patch Set 8: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
Message from Ian Lance Taylor: Patch Set 9: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
Message from Go Bot: Patch Set 9: SlowBots beginning. Status page: https://farmer.golang.org/try?commit=1e166e94 Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
Message from Go Bot: Patch Set 9: Build is still in progress... Other builds still in progress; subsequent failure notices suppressed until final report. Consult https://build.golang.org/ to see whether they are new failures. Keep in mind that TryBots currently test exactly your git commit, without rebasing. If your commit's git parent is old, the failure might've already been fixed. Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
Message from Jacob Alz: Patch Set 9: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
Message from Ian Lance Taylor: Patch Set 9: Code-Review+2 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
Message from Tobias Klauser: Patch Set 9: Trust+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
Message from Go Bot: Patch Set 9: TryBot-Result-1 1 of 25 SlowBots failed: Consult https://build.golang.org/ to see whether they are new failures. Keep in mind that TryBots currently test exactly your git commit, without rebasing. If your commit's git parent is old, the failure might've already been fixed. SlowBot builds that ran:
Please don’t reply on this GitHub thread. Visit golang.org/cl/305230. |
This adds support for reading the FreeDesktop Shared MIME-info Database on Unix systems, if it exists. It should make lookups work on systems where the mime.types files are not present and should lead to better mimetype lookup in general. If the shared mimetype database does not exist, we will fall back to reading mime.types files in common locations. Related to a bug on Solus bugtracker: https://dev.getsol.us/T9394 This change makes the mime package work on Solus. Change-Id: If330c22ffe523bf31f7f10807a54fc8858517055 GitHub-Last-Rev: d5fbe8c GitHub-Pull-Request: #45271 Reviewed-on: https://go-review.googlesource.com/c/go/+/305230 Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Trust: Tobias Klauser <[email protected]>
This PR is being closed because golang.org/cl/305230 has been merged. |
This adds support for reading the FreeDesktop Shared MIME-info Database on Unix systems, if it exists.
It should make lookups work on systems where the mime.types files are not present and
should lead to better mimetype lookup in general. If the shared mimetype database does not exist,
we will fall back to reading mime.types files in common locations.
Related to a bug on Solus bugtracker: https://dev.getsol.us/T9394
This change makes the mime package work on Solus.