Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: project-stacker/stacker-bom
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4b37a14f8e76fcaebf6caa8e87e634701d2cc2dd
Choose a base ref
..
head repository: project-stacker/stacker-bom
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1a090def64263a1b9630fac099cffd9c2f99219e
Choose a head ref
Showing with 3 additions and 3 deletions.
  1. +2 −2 pkg/fs/fs.go
  2. +1 −1 pkg/fs/verify.go
4 changes: 2 additions & 2 deletions pkg/fs/fs.go
Original file line number Diff line number Diff line change
@@ -142,7 +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[:]),
"SHA256": hex.EncodeToString(cksumSHA256[:]),
@@ -292,7 +292,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[:]),
"SHA256": hex.EncodeToString(cksumSHA256[:]),
2 changes: 1 addition & 1 deletion pkg/fs/verify.go
Original file line number Diff line number Diff line change
@@ -126,7 +126,7 @@ func Verify(input, inventory, missing string) error {
sfile := spdx.NewFile()
sfile.SetEntity(
&spdx.Entity{
Name: entry.Path,
FileName: entry.Path,
Checksum: map[string]string{"SHA256": strings.Split(entry.Checksum, ":")[1]},
},
)