chore(deps): bump github.com/gabriel-vasile/mimetype from 1.4.9 to 1.4.10
Bumps github.com/gabriel-vasile/mimetype from 1.4.9 to 1.4.10.
Release notes
Sourced from github.com/gabriel-vasile/mimetype's releases.
v1.4.10 perfomance inprovements, tests and new formats
This release adds support for XHTML, Lotus-1-2-3, KML, shell scripts, VSDX, OneNote, CHM and Netpbm file formats. Changes were made to make mimetype behave more file linux
$ file --mimeutility.https://github.com/gabriel-vasile/mimetype_tests repo is now used for running comparisons between
mimetypeand$ file --mime. It contains 50 000 samples andmimetypeidentifies the same format as$ file --mimefor ~97% of them. Results are in the Actions tab.What's Changed
- charset: remove dependency on x/net for parsing html in gabriel-vasile/mimetype#669
- CSV: replace stdlib reader with a parser that allocates less in gabriel-vasile/mimetype#672
- svg: make detection harder in gabriel-vasile/mimetype#674
- pdf: relax check to match file in gabriel-vasile/mimetype#677
- csv: stop mutating input byte slices; for #680 in gabriel-vasile/mimetype#681
- charset: remove dependency on mime in gabriel-vasile/mimetype#684
- mso_office: increase limit of checked entries from 4 to 100 in gabriel-vasile/mimetype#685
- jar: replace application/jar with application/java-archive in gabriel-vasile/mimetype#686
- Zip container improvements in gabriel-vasile/mimetype#687
- Jar first entry inside a zip in gabriel-vasile/mimetype#688
- svg+html: better handling for comments in gabriel-vasile/mimetype#689
- xhtml: add support in gabriel-vasile/mimetype#690
- misc: behave more like file in gabriel-vasile/mimetype#691
- lotus-1-2-3: add support in gabriel-vasile/mimetype#695
- Add support for zipped KML files by
@dmlambeain gabriel-vasile/mimetype#693- shell: add support by
@scopin gabriel-vasile/mimetype#694- ruby: add support by
@scopin gabriel-vasile/mimetype#700- python: associate with python2 and python3 shebangs by
@scopin gabriel-vasile/mimetype#699- vsdx: add support in gabriel-vasile/mimetype#702
- oneNote: add support in gabriel-vasile/mimetype#703
- chm: add support for Microsoft Compiled HTML Help in gabriel-vasile/mimetype#704
- Netpbm: add support by
@kenshawin gabriel-vasile/mimetype#705New Contributors
@dmlambeamade their first contribution in gabriel-vasile/mimetype#693@scopmade their first contribution in gabriel-vasile/mimetype#694@kenshawmade their first contribution in gabriel-vasile/mimetype#705Full Changelog: https://github.com/gabriel-vasile/mimetype/compare/v1.4.9...v1.4.10
v1.4.10-rc2 XHTML, Lotus, KML, VSDX, OneNote, shell scripts
This release adds support for XHTML, Lotus-1-2-3, KML, and shell scripts. Changes were made to make mimetype behave more file linux
$ file --mimeutilityhttps://github.com/gabriel-vasile/mimetype_tests repo is now used for running comparisons betweem
mimetypeand$ file --mime. It contains 50 000 samples andmimetypeidentifies the same format as$ file --mimefor ~97% of them.What's Changed
- charset: remove dependency on x/net for parsing html in gabriel-vasile/mimetype#669
- CSV: replace stdlib reader with a parser that allocates less in gabriel-vasile/mimetype#672
- svg: make detection harder in gabriel-vasile/mimetype#674
- pdf: relax check to match file in gabriel-vasile/mimetype#677
- csv: stop mutating input byte slices; for #680 in gabriel-vasile/mimetype#681
... (truncated)
Commits
8dee3e7Add Netpbm support (#705)fefd0afchm: add support for Microsoft Compiled HTML Helpeaef3b1oneNote: add support405687fvsdx: add supportcbeec03python: associate with python2 and python3 shebangs (#699)f5c807fruby: add support9e0c823charset: limit detection to first 1024 bytes2f0854btext: limit check to max 4096 bytes310dc04zip: stop searching when PK\x03\x04 cannot be found (#696)9ffa892shell: add support (#694)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Benchmark Test Results
Benchmark results from the latest changes vs base branch
make .tool/task
make[1]: Entering directory '/home/runner/work/stereoscope/stereoscope'
make[1]: Leaving directory '/home/runner/work/stereoscope/stereoscope'
.tool/task show-benchstat
? github.com/anchore/stereoscope [no test files]
? github.com/anchore/stereoscope/examples [no test files]
PASS
ok github.com/anchore/stereoscope/internal 0.003s
? github.com/anchore/stereoscope/internal/bus [no test files]
PASS
ok github.com/anchore/stereoscope/internal/containerd 0.007s
PASS
ok github.com/anchore/stereoscope/internal/docker 0.004s
? github.com/anchore/stereoscope/internal/log [no test files]
PASS
ok github.com/anchore/stereoscope/internal/podman 0.004s
? github.com/anchore/stereoscope/pkg/event [no test files]
? github.com/anchore/stereoscope/pkg/event/parsers [no test files]
goos: linux
goarch: amd64
pkg: github.com/anchore/stereoscope/pkg/file
cpu: AMD EPYC 7763 64-Core Processor
BenchmarkTarIndex-4 35270 33603 ns/op 5697 B/op 93 allocs/op
BenchmarkTarIndex-4 35618 33593 ns/op 5698 B/op 93 allocs/op
BenchmarkTarIndex-4 35618 33918 ns/op 5697 B/op 93 allocs/op
BenchmarkTarIndex-4 35571 33604 ns/op 5699 B/op 93 allocs/op
BenchmarkTarIndex-4 35557 33762 ns/op 5697 B/op 93 allocs/op
BenchmarkTarIndex-4 35404 33773 ns/op 5697 B/op 93 allocs/op
BenchmarkTarIndex-4 35924 33985 ns/op 5700 B/op 93 allocs/op
PASS
ok github.com/anchore/stereoscope/pkg/file 10.807s
PASS
ok github.com/anchore/stereoscope/pkg/filetree 0.005s
? github.com/anchore/stereoscope/pkg/filetree/filenode [no test files]
PASS
ok github.com/anchore/stereoscope/pkg/image 0.005s
PASS
ok github.com/anchore/stereoscope/pkg/image/containerd 0.007s
PASS
ok github.com/anchore/stereoscope/pkg/image/docker 0.005s
PASS
ok github.com/anchore/stereoscope/pkg/image/oci 0.005s
PASS
ok github.com/anchore/stereoscope/pkg/image/oci/credhelpers 0.005s
? github.com/anchore/stereoscope/pkg/image/podman [no test files]
PASS
ok github.com/anchore/stereoscope/pkg/image/sif 0.004s
? github.com/anchore/stereoscope/pkg/imagetest [no test files]
PASS
ok github.com/anchore/stereoscope/pkg/tree 0.003s
PASS
ok github.com/anchore/stereoscope/pkg/tree/node 0.003s
goos: linux
goarch: amd64
pkg: github.com/anchore/stereoscope/test/integration
cpu: AMD EPYC 7763 64-Core Processor
BenchmarkSimpleImage_GetImage/docker-archive-4 1114 1086877 ns/op 280256 B/op 2366 allocs/op
BenchmarkSimpleImage_GetImage/docker-archive-4 1088 1115950 ns/op 280045 B/op 2366 allocs/op
BenchmarkSimpleImage_GetImage/docker-archive-4 1075 1096513 ns/op 279911 B/op 2365 allocs/op
BenchmarkSimpleImage_GetImage/docker-archive-4 1099 1089305 ns/op 279930 B/op 2365 allocs/op
BenchmarkSimpleImage_GetImage/docker-archive-4 1093 1085482 ns/op 279730 B/op 2365 allocs/op
BenchmarkSimpleImage_GetImage/docker-archive-4 1095 1103904 ns/op 279804 B/op 2365 allocs/op
BenchmarkSimpleImage_GetImage/docker-archive-4 1096 1121040 ns/op 279489 B/op 2365 allocs/op
--- FAIL: BenchmarkSimpleImage_GetImage/podman
fixture_image_simple_test.go:175: could not get fixture image: unable to detect input for 'stereoscope-fixture-image-simple:04e16e44161c8888a1a963720fd0443cbf7eef8101434c431de8725cd98cc9f7', errs: podman not available: no host address
#0 building with "default" instance using docker driver
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 345B done
#1 DONE 0.0s
#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s
#3 [internal] load build context
#3 transferring context: 209B done
#3 DONE 0.0s
#4 [1/3] ADD file-1.txt /somefile-1.txt
#4 CACHED
#5 [2/3] ADD file-2.txt /somefile-2.txt
#5 CACHED
#6 [3/3] ADD target /
#6 CACHED
#7 exporting to image
#7 exporting layers done
#7 writing image sha256:95e34d413551fd21c7ab43ae23c6707bd2b4ec81b44d049e2fb41e0e240a314c 0.1s done
#7 naming to docker.io/library/stereoscope-fixture-image-simple:04e16e44161c8888a1a963720fd0443cbf7eef8101434c431de8725cd98cc9f7 done
#7 naming to docker.io/library/stereoscope-fixture-image-simple:latest done
#7 DONE 0.1s
ctr: failed to dial "/run/containerd/containerd.sock": connection error: desc = "transport: error while dialing: dial unix /run/containerd/containerd.sock: connect: permission denied"
--- FAIL: BenchmarkSimpleImage_GetImage
image_fixtures.go:193: using existing image tar: 'test-fixtures/cache/stereoscope-fixture-image-simple-04e16e44161c8888a1a963720fd0443cbf7eef8101434c431de8725cd98cc9f7.tar' (size: 22528, modified: 2025-09-15 18:32:13.046686894 +0000 UTC, mode: -rw-r--r--)
image_fixtures.go:241: Build docker image: name="stereoscope-fixture-image-simple" tag="04e16e44161c8888a1a963720fd0443cbf7eef8101434c431de8725cd98cc9f7"
image_fixtures.go:291: saveImage running: docker image save stereoscope-fixture-image-simple:04e16e44161c8888a1a963720fd0443cbf7eef8101434c431de8725cd98cc9f7
image_fixtures.go:286:
Error Trace: /home/runner/work/stereoscope/stereoscope/pkg/imagetest/image_fixtures.go:286
/home/runner/work/stereoscope/stereoscope/pkg/imagetest/image_fixtures.go:162
/home/runner/work/stereoscope/stereoscope/pkg/imagetest/image_fixtures.go:152
/home/runner/work/stereoscope/stereoscope/pkg/imagetest/image_fixtures.go:33
/home/runner/work/stereoscope/stereoscope/test/integration/fixture_image_simple_test.go:163
/opt/hostedtoolcache/go/1.24.7/x64/src/testing/benchmark.go:245
/opt/hostedtoolcache/go/1.24.7/x64/src/runtime/asm_amd64.s:1700
Error: Received unexpected error:
exit status 1
Test: BenchmarkSimpleImage_GetImage
Messages: could not import docker image to containerd (shell out)
BenchmarkSimpleImage_FetchSquashedContents/docker-archive-4 58238 19502 ns/op 2616 B/op 18 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/docker-archive-4 61384 19508 ns/op 2616 B/op 18 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/docker-archive-4 61388 19440 ns/op 2616 B/op 18 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/docker-archive-4 61258 19449 ns/op 2616 B/op 18 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/docker-archive-4 61791 19498 ns/op 2616 B/op 18 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/docker-archive-4 61290 19426 ns/op 2616 B/op 18 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/docker-archive-4 61461 19390 ns/op 2616 B/op 18 allocs/op
--- FAIL: BenchmarkSimpleImage_FetchSquashedContents
image_fixtures.go:193: using existing image tar: 'test-fixtures/cache/stereoscope-fixture-image-simple-04e16e44161c8888a1a963720fd0443cbf7eef8101434c431de8725cd98cc9f7.tar' (size: 22528, modified: 2025-09-15 18:32:13.046686894 +0000 UTC, mode: -rw-r--r--)
image_fixtures.go:75: error getting fixture image: 'podman' 'image-simple' with request 'podman:stereoscope-fixture-image-simple:04e16e44161c8888a1a963720fd0443cbf7eef8101434c431de8725cd98cc9f7': unable to detect input for 'stereoscope-fixture-image-simple:04e16e44161c8888a1a963720fd0443cbf7eef8101434c431de8725cd98cc9f7', errs: podman not available: no host address
FAIL
exit status 1
FAIL github.com/anchore/stereoscope/test/integration 19.687s
? github.com/anchore/stereoscope/test/integration/test-fixtures/registry [no test files]
FAIL
goos: linux
goarch: amd64
pkg: github.com/anchore/stereoscope/pkg/file
cpu: AMD EPYC 7763 64-Core Processor
ctr:
│ .tmp/benchmark-8f89b13.txt │
│ sec/op │
TarIndex-4 33.76µ ± 1%
│ .tmp/benchmark-8f89b13.txt │
│ B/op │
TarIndex-4 5.563Ki ± 0%
│ .tmp/benchmark-8f89b13.txt │
│ allocs/op │
TarIndex-4 93.00 ± 0%
pkg: github.com/anchore/stereoscope/test/integration
│ .tmp/benchmark-8f89b13.txt │
│ sec/op │
SimpleImage_GetImage/docker-archive-4 1.097m ± 2%
│ .tmp/benchmark-8f89b13.txt │
│ B/op │
SimpleImage_GetImage/docker-archive-4 273.4Ki ± 0%
│ .tmp/benchmark-8f89b13.txt │
│ allocs/op │
SimpleImage_GetImage/docker-archive-4 2.365k ± 0%
ctr: failed to dial "/run/containerd/containerd.sock": connection error: desc = "transport: error while dialing: dial unix /run/containerd/containerd.sock: connect: permission denied"
│ .tmp/benchmark-8f89b13.txt │
│ sec/op │
SimpleImage_FetchSquashedContents/docker-archive-4 19.45µ ± 0%
│ .tmp/benchmark-8f89b13.txt │
│ B/op │
SimpleImage_FetchSquashedContents/docker-archive-4 2.555Ki ± 0%
│ .tmp/benchmark-8f89b13.txt │
│ allocs/op │
SimpleImage_FetchSquashedContents/docker-archive-4 18.00 ± 0%
goos: linux
goarch: amd64
pkg: github.com/anchore/stereoscope/pkg/file
cpu: AMD EPYC 7763 64-Core Processor
ctr:
│ .tmp/benchmark-8f89b13.txt │
│ sec/op │
TarIndex-4 33.76µ ± 1%
│ .tmp/benchmark-8f89b13.txt │
│ B/op │
TarIndex-4 5.563Ki ± 0%
│ .tmp/benchmark-8f89b13.txt │
│ allocs/op │
TarIndex-4 93.00 ± 0%
pkg: github.com/anchore/stereoscope/test/integration
│ .tmp/benchmark-8f89b13.txt │
│ sec/op │
SimpleImage_GetImage/docker-archive-4 1.097m ± 2%
│ .tmp/benchmark-8f89b13.txt │
│ B/op │
SimpleImage_GetImage/docker-archive-4 273.4Ki ± 0%
│ .tmp/benchmark-8f89b13.txt │
│ allocs/op │
SimpleImage_GetImage/docker-archive-4 2.365k ± 0%
ctr: failed to dial "/run/containerd/containerd.sock": connection error: desc = "transport: error while dialing: dial unix /run/containerd/containerd.sock: connect: permission denied"
│ .tmp/benchmark-8f89b13.txt │
│ sec/op │
SimpleImage_FetchSquashedContents/docker-archive-4 19.45µ ± 0%
│ .tmp/benchmark-8f89b13.txt │
│ B/op │
SimpleImage_FetchSquashedContents/docker-archive-4 2.555Ki ± 0%
│ .tmp/benchmark-8f89b13.txt │
│ allocs/op │
SimpleImage_FetchSquashedContents/docker-archive-4 18.00 ± 0%
Somehow there is a breaking change pulling in this patch version bump. Closing this PR now since we're going into a release and will bump this dependency going into the next release.
TestFileMetadataFromTar
expected: "text/plain"
actual : "text/x-shellscript"
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.
If you change your mind, just re-open this PR and I'll resolve any conflicts on it.