Skip to content

Commit

Permalink
Change pacman and go pkg_format to mirror PURL
Browse files Browse the repository at this point in the history
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: tern-tools#1206

Signed-off-by: Rose Judge <rjudge@vmware.com>
  • Loading branch information
rnjudge committed Mar 1, 2023
1 parent df242ba commit d463227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tern/analyze/default/command_lib/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ apk:

# pacman ----------------------------------------------------------------------
pacman:
pkg_format: 'pkg.tar.xz'
pkg_format: 'alpm'
os_guess:
- 'Arch Linux'
path:
Expand Down Expand Up @@ -509,7 +509,7 @@ npm:
delimiter: "LICF"
# golang----------------------------------------------------------------------
go:
pkg_format: 'go'
pkg_format: 'golang'
os_guess:
- 'None'
path:
Expand Down

0 comments on commit d463227

Please sign in to comment.