Skip to content

Commit

Permalink
refactor: use code-client-go without gaf
Browse files Browse the repository at this point in the history
  • Loading branch information
teodora-sandu committed Mar 25, 2024
1 parent 1226446 commit 3378039
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions application/di/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,11 @@ func initInfrastructure() {
snykCodeClient = code.NewSnykCodeHTTPClient(codeInstrumentor, codeErrorReporter, networkAccess.GetHttpClient)
snykCodeBundleUploader = code.NewBundler(snykCodeClient, codeInstrumentor)

httpClient := codeClientHTTP.NewHTTPClient(engine, networkAccess.GetHttpClient, codeInstrumentor, codeErrorReporter)
snykCode := codeClientDeepCode.NewSnykCodeClient(engine, httpClient, codeInstrumentor)
bundleManager := codeClientBundle.NewBundleManager(engine, snykCode, codeInstrumentor, codeErrorReporter)
httpClient := codeClientHTTP.NewHTTPClient(engine.GetLogger(), config.CurrentConfig(),
networkAccess.GetHttpClient, codeInstrumentor,
codeErrorReporter)
snykCode := codeClientDeepCode.NewSnykCodeClient(engine.GetLogger(), httpClient, codeInstrumentor)
bundleManager := codeClientBundle.NewBundleManager(engine.GetLogger(), snykCode, codeInstrumentor, codeErrorReporter)
codeClientScanner := codeClient.NewCodeScanner(
bundleManager,
codeInstrumentor,
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ require (
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06
github.com/segmentio/analytics-go v3.1.0+incompatible
github.com/shirou/gopsutil v3.21.11+incompatible
github.com/snyk/code-client-go v0.4.2
github.com/snyk/code-client-go v1.0.0
github.com/snyk/go-application-framework v0.0.0-20240111143643-fa847b8a9a3b
github.com/sourcegraph/go-lsp v0.0.0-20240223163137-f80c5dd31dfd
github.com/stretchr/testify v1.8.4
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1
github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
github.com/snyk/code-client-go v0.4.2 h1:xxdRgmvrJmIwEnJPv6Jzi4jnypsjN2j2gSkneRmgA4M=
github.com/snyk/code-client-go v0.4.2/go.mod h1:h+4316SCrU7i2WzTYcEdwH8XxjJgGVWfuFXazXGG5VA=
github.com/snyk/code-client-go v1.0.0 h1:/EoDkXMSRahxhlGeGevIpe9y0y87+kQEhqresY4Vp7U=
github.com/snyk/code-client-go v1.0.0/go.mod h1:+1AS/NlWgDcyJcl/2yOPmrvMhg27Lh5uDCSOFWkdDsg=
github.com/snyk/go-application-framework v0.0.0-20240111143643-fa847b8a9a3b h1:8fFjcaUZpjLV06AtIqtB7QRMYBH/5dxv2CJp319q2Gs=
github.com/snyk/go-application-framework v0.0.0-20240111143643-fa847b8a9a3b/go.mod h1:Yz/qxFyfhf0xbA+z8Vzr5IM9IDG+BS+2PiGaP1yAsEw=
github.com/snyk/go-httpauth v0.0.0-20240307114523-1f5ea3f55c65 h1:CEQuYv0Go6MEyRCD3YjLYM2u3Oxkx8GpCpFBd4rUTUk=
Expand Down

0 comments on commit 3378039

Please sign in to comment.