Skip to content

Commit c46066c

Browse files
committed
chore: comment out exclusions for now - will address in 1059
1 parent 5b5372d commit c46066c

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

internal/mocks/uvclient.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package mocks
22

33
import (
4-
"path"
5-
64
"github.com/rs/zerolog"
75

86
"github.com/snyk/cli-extension-dep-graph/internal/uv"
@@ -20,11 +18,8 @@ func (m *MockUVClient) ExportSBOM(inputDir string) (*scaplugin.Finding, error) {
2018
return m.ExportSBOMFunc(inputDir)
2119
}
2220
return &scaplugin.Finding{
23-
Sbom: []byte(`{"mock":"sbom"}`),
24-
FileExclusions: []string{
25-
path.Join(inputDir, uv.RequirementsTxtFileName),
26-
path.Join(inputDir, uv.PyprojectTomlFileName),
27-
},
21+
Sbom: []byte(`{"mock":"sbom"}`),
22+
FileExclusions: []string{},
2823
NormalisedTargetFile: uv.UvLockFileName,
2924
}, nil
3025
}

internal/uv/uvclient.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"encoding/json"
55
"fmt"
66
"os/exec"
7-
"path"
87
"regexp"
98
"strconv"
109
"strings"
@@ -53,10 +52,13 @@ func (c client) ExportSBOM(inputDir string) (*scaplugin.Finding, error) {
5352
}
5453

5554
return &scaplugin.Finding{
56-
Sbom: output,
55+
Sbom: output,
5756
FileExclusions: []string{
58-
path.Join(inputDir, RequirementsTxtFileName),
59-
path.Join(inputDir, PyprojectTomlFileName),
57+
// TODO(uv): uncomment when we are able to pass these to the CLI correctly. Currently the
58+
// `--exclude` flag does not accept paths, it only accepts file or dir names, which does not
59+
// work for our use case.
60+
// path.Join(inputDir, uv.RequirementsTxtFileName),
61+
// path.Join(inputDir, uv.PyprojectTomlFileName),
6062
},
6163
NormalisedTargetFile: UvLockFileName,
6264
}, nil

0 commit comments

Comments
 (0)