Skip to content

Commit 5ab79f3

Browse files
committed
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 <[email protected]>
1 parent df242ba commit 5ab79f3

File tree

1 file changed

+2
-2
lines changed
  • tern/analyze/default/command_lib

1 file changed

+2
-2
lines changed

tern/analyze/default/command_lib/base.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ apk:
187187

188188
# pacman ----------------------------------------------------------------------
189189
pacman:
190-
pkg_format: 'pkg.tar.xz'
190+
pkg_format: 'alpm'
191191
os_guess:
192192
- 'Arch Linux'
193193
path:
@@ -509,7 +509,7 @@ npm:
509509
delimiter: "LICF"
510510
# golang----------------------------------------------------------------------
511511
go:
512-
pkg_format: 'go'
512+
pkg_format: 'golang'
513513
os_guess:
514514
- 'None'
515515
path:

0 commit comments

Comments
 (0)