From d463227d141dba6fa05ae9f8911793ff2e4ef3bc Mon Sep 17 00:00:00 2001 From: Rose Judge Date: Wed, 1 Mar 2023 14:53:34 -0800 Subject: [PATCH] Change pacman and go pkg_format to mirror PURL A package object's `pkg_format` attribute is used in the default report, as well as to determine when a license value should be retrieved from the `pkg_licesnes` attribute value (i.e. tern/formats/default/generator.py). Moving forward, we can also use the `pkg_format` as a purl type. This commit changes the go and pacman binary pkg_formats to align with the purl types[1] in the purl specification. [1]https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst Works towards: #1206 Signed-off-by: Rose Judge --- tern/analyze/default/command_lib/base.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tern/analyze/default/command_lib/base.yml b/tern/analyze/default/command_lib/base.yml index b24b67b4..d16427b3 100644 --- a/tern/analyze/default/command_lib/base.yml +++ b/tern/analyze/default/command_lib/base.yml @@ -187,7 +187,7 @@ apk: # pacman ---------------------------------------------------------------------- pacman: - pkg_format: 'pkg.tar.xz' + pkg_format: 'alpm' os_guess: - 'Arch Linux' path: @@ -509,7 +509,7 @@ npm: delimiter: "LICF" # golang---------------------------------------------------------------------- go: - pkg_format: 'go' + pkg_format: 'golang' os_guess: - 'None' path: