jfrog / froggit-go

Froggit-Go is a universal Go library, allowing to perform actions on VCS providers.
https://pkg.go.dev/github.com/jfrog/froggit-go
Apache License 2.0
45 stars 17 forks source link

go-bitbucket uses os.Exit #13

Closed cyrilc-pro closed 2 years ago

cyrilc-pro commented 2 years ago

Froggit-go uses github.com/ktrysmt/go-bitbucket but this library may, under some circumstances, kill the process using os.Exit(9).

For instance, in webhooks.go:

    data, err := json.Marshal(body)
    if err != nil {
        pp.Println(err)
        os.Exit(9)
    }

Possible fixes:

cyrilc-pro commented 2 years ago

Created https://github.com/ktrysmt/go-bitbucket/issues/174

cyrilc-pro commented 2 years ago

Fix: upgrade to ktrysmt/go-bitbucket 0.9.32