#1148630 ITP: golang-github-deitch-magic -- native Go implementation of the magic file format

Package:
wnpp
Source:
wnpp
Submitter:
Juan Manuel Méndez Rey
Date:
2026-09-21 12:53:05 UTC
Severity:
normal
#1148630#5
Date:
2026-09-21 12:51:53 UTC
From:
To:
* Package name    : golang-github-deitch-magic
  Version         : 0.0~git20230404.1ff89d7
  Upstream Contact: https://github.com/deitch/magic/issues
* URL             : https://github.com/deitch/magic
* License         : Apache-2.0
  Programming Lang: Go
  Description     : native Go implementation of the magic file format

A small pure-Go implementation of the magic-number file-type detection
 used by the classic file(1) command. It parses magic rules (offset, test,
 message) and reports the type of data read from any io.ReaderAt; the packaged
 snapshot's built-in rules focus on Linux kernel images.
 .
 A tiny CLI wrapper behaving like file(1) is included, which upstream describes
 as a testing aid rather than a replacement for file(1). syft uses it to
 identify kernel images inside container images.
 .
 This package is a build dependency of syft (ITP https://bugs.debian.org/1124819).

I intend to maintain this package within the Debian Go Packaging Team.