Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create and extend bundle [IDE-175] #2

Merged
merged 3 commits into from
Mar 18, 2024
Merged

Conversation

teodora-sandu
Copy link
Contributor

@teodora-sandu teodora-sandu commented Mar 7, 2024

Extracts the filtering, bundle creation, and bundle extension (upload) from snyk-ls into this Go library. The aim is for the new Go Snyk Code CLI to use this library too, so it needs to expose interfaces that can be used from snyk-ls and the CLI.

Although it looks like a lot of changes, it's only because I had to move a lot of the code from internal/ to pkg/ in order to be able to call this library from snyk-ls and support dependency injection too, for easier testing.

Example of how it's used in snyk-ls: snyk/snyk-ls#455

And tested it in IntelliJ too:

Screenshot 2024-03-15 at 15 22 47

@github-actions github-actions bot added feature and removed feature labels Mar 15, 2024
@teodora-sandu teodora-sandu changed the title feat: create bundle feat: create and extend bundle [IDE-175] Mar 15, 2024
@github-actions github-actions bot added feature and removed feature labels Mar 15, 2024
@teodora-sandu teodora-sandu force-pushed the feat/bundle-create branch 3 times, most recently from fec50f2 to bddcf2d Compare March 15, 2024 16:00
@teodora-sandu teodora-sandu marked this pull request as ready for review March 15, 2024 16:00
@teodora-sandu teodora-sandu requested a review from a team as a code owner March 15, 2024 16:00
@teodora-sandu
Copy link
Contributor Author

The only thing not done is to include the progress tracker which is blocked by snyk/go-application-framework#130

bundle/bundle.go Outdated Show resolved Hide resolved
scan.go Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
scan_test.go Outdated Show resolved Hide resolved
scan_test.go Outdated Show resolved Hide resolved
scan_test.go Outdated
)
}

func setupDocs(t *testing.T) (string, lsp.TextDocumentItem, lsp.TextDocumentItem, []byte, []byte) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getting rid of the LSP stuff here should be possible :)

scan_test.go Outdated Show resolved Hide resolved
@teodora-sandu teodora-sandu merged commit fce22d6 into main Mar 18, 2024
11 checks passed
@teodora-sandu teodora-sandu deleted the feat/bundle-create branch March 18, 2024 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants