From b182fc4578c8e09a588beb63dc1655b0af624bed Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Tue, 14 Dec 2021 17:27:35 -0500 Subject: [PATCH] unit test to reproduce issue #691 Signed-off-by: Alex Goodman --- syft/distro/identify_test.go | 5 +++++ syft/distro/test-fixtures/os/alpine-edge/etc/os-release | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 syft/distro/test-fixtures/os/alpine-edge/etc/os-release diff --git a/syft/distro/identify_test.go b/syft/distro/identify_test.go index e5abd349c..6515c6423 100644 --- a/syft/distro/identify_test.go +++ b/syft/distro/identify_test.go @@ -25,6 +25,11 @@ func TestIdentifyDistro(t *testing.T) { Type: Alpine, Version: "3.11.6", }, + { + fixture: "test-fixtures/os/alpine-edge", + Type: Alpine, + Version: "3.15.0_alpha20210804", + }, { fixture: "test-fixtures/os/amazon", Type: AmazonLinux, diff --git a/syft/distro/test-fixtures/os/alpine-edge/etc/os-release b/syft/distro/test-fixtures/os/alpine-edge/etc/os-release new file mode 100644 index 000000000..b2c674d5a --- /dev/null +++ b/syft/distro/test-fixtures/os/alpine-edge/etc/os-release @@ -0,0 +1,6 @@ +NAME="Alpine Linux" +ID=alpine +VERSION_ID=3.15.0_alpha20210804 +PRETTY_NAME="Alpine Linux edge" +HOME_URL="https://alpinelinux.org/" +BUG_REPORT_URL="https://bugs.alpinelinux.org/"