Skip to content

Conversation

@ldez
Copy link
Member

@ldez ldez commented Jul 3, 2025

The Alibaba Cloud V1.0 Go SDK has entered End-of-Support (March 1, 2025) and is no longer recommended for use.
New users should directly use the V2.0 Go SDK;
https://github.com/aliyun/alibaba-cloud-sdk-go

But there is no link inside the readme about this SDK v2.

There is a link inside the "About" section to an org: https://github.com/aliyun/alibabacloud-sdk

I found 2 repositories:

The 2 repositories contain the same module: github.com/alibabacloud-go/alidns-20150109/v4
The code seems identical.

The main file is client/client.go: a 2.03 MB file with more than 67k LOC, too large to be displayed inside GitHub.

There is a light migration guide, but the SDK APIs are closed.

The size of the lib inside the GOCACHE is reduced:

SDK v1:

MODULE SIZE
github.com/aliyun/alibaba-cloud-sdk-go@v1.63.100 88.654 MiB

SDK v2:

MODULE SIZE
github.com/alibabacloud-go/alidns-20150109/v4@v4.5.10 2.044 MiB
github.com/aliyun/credentials-go@v1.4.5 359.074 KiB
github.com/alibabacloud-go/darabonba-openapi/v2@v2.0.11 148.271 KiB
github.com/alibabacloud-go/tea@v1.2.2 129.162 KiB
github.com/alibabacloud-go/openapi-util@v0.1.1 53.163 KiB
github.com/alibabacloud-go/tea-utils/v2@v2.0.6 44.850 KiB
github.com/alibabacloud-go/alibabacloud-gateway-spi@v0.0.5 31.445 KiB
github.com/alibabacloud-go/tea-xml@v1.1.3 19.267 KiB
github.com/alibabacloud-go/debug@v1.0.1 15.773 KiB
github.com/alibabacloud-go/endpoint-util@v1.1.0 4.577 KiB

Total: ~2.83 MiB


And it decreases the binary by ~5MB.

@ldez ldez force-pushed the feat/alidns-sdk-v2 branch from 3e802ca to f7b86aa Compare July 3, 2025 04:38
Copy link
Member

@dmke dmke left a comment

Choose a reason for hiding this comment

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

2 MB .go files!? LOL

@ldez ldez added this to the unreleased milestone Jul 3, 2025
@ldez
Copy link
Member Author

ldez commented Jul 3, 2025

2 MB in only one file 😸

@ldez ldez merged commit 1fecd31 into go-acme:master Jul 3, 2025
7 checks passed
@ldez ldez deleted the feat/alidns-sdk-v2 branch July 3, 2025 16:17
@ldez ldez modified the milestones: unreleased, v4.24 Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants