Skip to content

refactor,fix: add rename lfs objects migration #497

refactor,fix: add rename lfs objects migration

refactor,fix: add rename lfs objects migration #497

Triggered via pull request October 27, 2023 19:25
Status Success
Total duration 39s
Artifacts

lint-soft.yml

on: pull_request
lint-soft
30s
lint-soft
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 1 warning
lint-soft: pkg/db/migrate/0003_migrate_lfs_objects.go#L59
mnd: Magic number: 5, in <condition> detected (gomnd)
lint-soft: pkg/db/migrate/0003_migrate_lfs_objects.go#L66
mnd: Magic number: 5, in <condition> detected (gomnd)
lint-soft: pkg/db/migrate/0003_migrate_lfs_objects.go#L32
error returned from external package is unwrapped: sig: func (*github.com/charmbracelet/soft-serve/pkg/db.Tx).Select(dest interface{}, query string, args ...interface{}) error (wrapcheck)
lint-soft: pkg/db/migrate/0003_migrate_lfs_objects.go#L37
error returned from external package is unwrapped: sig: func (*github.com/charmbracelet/soft-serve/pkg/db.Tx).Select(dest interface{}, query string, args ...interface{}) error (wrapcheck)
lint-soft: pkg/git/lfs.go#L107
error returned from external package is unwrapped: sig: func github.com/charmbracelet/soft-serve/pkg/db.WrapError(err error) error (wrapcheck)
lint-soft: pkg/git/lfs.go#L112
error returned from interface method should be wrapped: sig: func (github.com/charmbracelet/soft-serve/pkg/storage.Storage).Exists(name string) (bool, error) (wrapcheck)
lint-soft: pkg/git/lfs.go#L117
error returned from external package is unwrapped: sig: func github.com/charmbracelet/soft-serve/pkg/db.WrapError(err error) error (wrapcheck)
lint-soft: pkg/git/lfs.go#L141
error returned from interface method should be wrapped: sig: func (io/fs.File).Close() error (wrapcheck)
lint-soft
Restore cache failed: Dependencies file is not found in /home/runner/work/soft-serve/soft-serve. Supported file pattern: go.sum