wal-g icon indicating copy to clipboard operation
wal-g copied to clipboard

miss makezero in slice init

Open alingse opened this issue 8 months ago • 1 comments

Database name

Wal-g provides support for many databases, please write down name of database you uses.

Issue description

Describe your problem

I was running github actions to run linter makezero for top github golang repos.

see issues https://github.com/alingse/go-linter-runner/issues/1

and the github actions output https://github.com/alingse/go-linter-runner/actions/runs/9242986885/job/25426524275

====================================================================================================
append to slice `errMsgs` with non-zero initialized length at https://github.com/wal-g/wal-g/blob/master/internal/multistorage/storage.go#L114:13
====================================================================================================

the errMsgs := make([]string, len(ce.specificStorageErrs)) should be errMsgs := make([]string, 0, len(ce.specificStorageErrs))

Please provide steps to reproduce

// it can really help

Please add config and wal-g stdout/stderr logs for debug purpose

also you can use WALG_LOG_LEVEL=DEVEL for logs collecting

If you can, provide logs

```bash any logs here ```

alingse avatar May 27 '24 15:05 alingse