Skip to content

Commit

Permalink
Revert "sca: Properly detect .so files as deps"
Browse files Browse the repository at this point in the history
This reverts commit 288fb15.
  • Loading branch information
justinvreeland committed Oct 9, 2024
1 parent 317fd08 commit 5baad49
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions pkg/sca/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ func TestAnalyze(t *testing.T) {
"so:liblcms2-e69eef39.so.2.0.16",
"so:liblzma-13fa198c.so.5.4.5",
"so:libm.so.6",
"so:libopenblas64_p-r0-0cf96a72.3.23.dev.so",
"so:libopenjp2-eca49203.so.2.5.0",
"so:libpng16-78d422d5.so.16.40.0",
"so:libpthread.so.0",
Expand Down Expand Up @@ -132,8 +131,6 @@ func TestAnalyze(t *testing.T) {
"so:libm.so.6",
"so:libmount.so.1",
"so:libssl.so.3",
"so:libsystemd-core-256.so",
"so:libsystemd-shared-256.so",
"so:libudev.so.1",
},
Provides: []string{
Expand Down
2 changes: 1 addition & 1 deletion pkg/sca/sca.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func generateSharedObjectNameDeps(ctx context.Context, hdl SCAHandle, generated
if lib == "libcuda.so.1" {
continue
}
if strings.Contains(lib, ".so") {
if strings.Contains(lib, ".so.") {
log.Infof(" found lib %s for %s", lib, path)
generated.Runtime = append(generated.Runtime, fmt.Sprintf("so:%s", lib))
}
Expand Down

0 comments on commit 5baad49

Please sign in to comment.