fix(postgresql): [122322285] tencentcloud_postgresql_instance
support upgrade version
#5262
Triggered via pull request
March 12, 2025 08:49
Status
Failure
Total duration
1h 14m 52s
Artifacts
–
golangci-lint.yml
on: pull_request
golangci-lint
1h 14m
Annotations
7 errors and 1 warning
golangci-lint
golangci-lint exit with code 4
|
golangci-lint:
tencentcloud/services/postgresql/data_source_tc_postgresql_db_versions.go#L95
SA1012: do not pass a nil Context, even if a function permits it; pass context.TODO if you are unsure about which Context to use (staticcheck)
|
golangci-lint:
tencentcloud/services/postgresql/resource_tc_postgresql_instance.go#L1449
ineffectual assignment to oldMVInterface (ineffassign)
|
golangci-lint:
tencentcloud/services/postgresql/resource_tc_postgresql_instance.go#L1484
S1009: should omit nil check; len() for []*github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/postgres/v20170312.Version is defined as zero (gosimple)
|
golangci-lint:
tencentcloud/services/postgresql/resource_tc_postgresql_instance.go#L1470
S1009: should omit nil check; len() for []*github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/postgres/v20170312.Version is defined as zero (gosimple)
|
golangci-lint:
tencentcloud/services/postgresql/resource_tc_postgresql_instance.go#L1485
`verison` is a misspelling of `version` (misspell)
|
golangci-lint:
tencentcloud/services/postgresql/resource_tc_postgresql_instance.go#L1471
`verison` is a misspelling of `version` (misspell)
|
golangci-lint
Both go-version and go-version-file inputs are specified, only go-version will be used
|