jfrog / build-info-go

build-info-go is a Go library and a CLI, which allows generating build-info for a source code project.
https://www.buildinfo.org
Apache License 2.0
63 stars 37 forks source link

Allow the `GetDependenciesList` for Go to accept an error handler #255

Closed asafambar closed 3 months ago

asafambar commented 4 months ago

…n when building go tree

The PR introduces support for recognizing errors that occur while building the Go dependency tree. The primary reason for adding this support is to detect errors originating from the curation service. It's essential to catch these errors during the tree-building process, as they can occur when fetching dependencies from Artifactory as a result of running the go list command. The code changes involve passing a function to handle these errors, allowing the libraries that use it to manage error handling and reduce code duplication.

asafambar commented 4 months ago

PR description: The PR introduces support for recognizing errors that occur while building the Go dependency tree. The primary reason for adding this support is to detect errors originating from the curation service. It's essential to catch these errors during the tree-building process, as they can occur when fetching dependencies from Artifactory as a result of running the go list command. The code changes involve passing a function to handle these errors, allowing the libraries that use it to manage error handling and reduce code duplication.

github-actions[bot] commented 4 months ago
[![👍 Frogbot scanned this pull request and did not find any new security issues.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)

[🐸 JFrog Frogbot](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)