Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
rchincha committed Apr 15, 2024
1 parent 1a090de commit d764ae9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/fs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ func BuildPackageFromDir(input string, kdoc *k8spdx.Document, kpkg *k8spdx.Packa
kfile := k8spdx.NewFile()
kfile.SetEntity(
&k8spdx.Entity{
Name: path,
FileName: path,
Checksum: map[string]string{
"SHA1": hex.EncodeToString(cksumSHA1[:]),
Expand Down Expand Up @@ -292,6 +293,7 @@ func BuildPackageFromFile(input string, kpkg *k8spdx.Package, license string) er
kfile := k8spdx.NewFile()
kfile.SetEntity(
&k8spdx.Entity{
Name: input,
FileName: input,
Checksum: map[string]string{
"SHA1": hex.EncodeToString(cksumSHA1[:]),
Expand Down

0 comments on commit d764ae9

Please sign in to comment.