xanzy / go-gitlab

GitLab Go SDK
Apache License 2.0
2.37k stars 940 forks source link

Our service has a scenario where we need to use both V3 and V4 api, is there a recommended solution? #1860

Closed li-jin-gou closed 8 months ago

li-jin-gou commented 8 months ago

v3 branch: https://github.com/xanzy/go-gitlab/tree/f-api-v3. I've seen this branch, and my current thinking is that vendor a copy of the code for this branch

svanharmelen commented 8 months ago

Hi @li-jin-gou, not sure how you can make that work... That branch doesn't use Go modules yet so I think vendoring and using it locally is probably your best bet.

The code in that branch is no longer maintained, so since it will not get any updates you can also just copy the code into a local package (directory) within your application and use it from there.

li-jin-gou commented 8 months ago

not sure how you can make that work... That branch doesn't use Go modules yet so I think vendoring and using it locally is probably your best bet.

The code in that branch is no longer maintained, so since it will not get any updates you can also just copy the code into a local package (directory) within your application and use it from there.

Thanks for the reply.