While converting git-bug to use gitlab.com/gitlab-org/api/client-go tests fail
When running make test
for git-bug
where I have ported github.com/xanzy/go-gitlab to gitlab.com/gitlab-org/api/client-go this test fails:
Error: bridge/gitlab/export_test.go:322:50: cannot use gitlab.WithContext(ctx) \
(value of type "gitlab.com/gitlab-org/api/client-go".RequestOptionFunc) as \
*"gitlab.com/gitlab-org/api/client-go".DeleteProjectOptions value in argument to client.Projects.DeleteProject
The test function is this:
// delete repository need a token with scope 'delete_repo'
func deleteRepository(ctx context.Context, project int, token *auth.Token) error {
client, err := buildClient(defaultBaseURL, token)
if err != nil {
return err
}
_, err = client.Projects.DeleteProject(project, gitlab.WithContext(ctx))
return err
}
Also visible on GitHub Actions.
Could I ask for the assistance with porting git-bug
to your module, please?
Thank you