diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ace60b6fa..96d4cdde4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -23,7 +23,7 @@ jobs: with: # Required: the version of golangci-lint is required and # should be specified with patch version. - version: v1.58.1 + version: v1.59.1 args: --timeout 5m github-token: ${{ secrets.github_token }} # caching issues, see: https://github.com/golangci/golangci-lint-action/issues/244#issuecomment-1052190775 diff --git a/go.mod b/go.mod index 92abe5ef7..62853eece 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,7 @@ module github.com/neondatabase/autoscaling go 1.21 replace ( + github.com/optiopay/kafka => github.com/optiopay/kafka v0.0.0 k8s.io/api => k8s.io/api v0.26.15 k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.26.15 k8s.io/apimachinery => k8s.io/apimachinery v0.26.15 diff --git a/neonvm/apis/neonvm/v1/virtualmachine_types.go b/neonvm/apis/neonvm/v1/virtualmachine_types.go index d197b1f85..01c56a935 100644 --- a/neonvm/apis/neonvm/v1/virtualmachine_types.go +++ b/neonvm/apis/neonvm/v1/virtualmachine_types.go @@ -353,8 +353,10 @@ func (m MilliCPU) MarshalJSON() ([]byte, error) { func (m MilliCPU) Format(state fmt.State, verb rune) { switch { case verb == 'v' && state.Flag('#'): + //nolint:errcheck // can't do anything about the write error state.Write([]byte(fmt.Sprintf("%v", uint32(m)))) default: + //nolint:errcheck // can't do anything about the write error state.Write([]byte(fmt.Sprintf("%v", m.AsFloat64()))) } } diff --git a/pkg/api/types.go b/pkg/api/types.go index abaa37eaf..14d62451e 100644 --- a/pkg/api/types.go +++ b/pkg/api/types.go @@ -272,8 +272,10 @@ func (b Bytes) MarshalJSON() ([]byte, error) { func (b Bytes) Format(state fmt.State, verb rune) { switch { case verb == 'v' && state.Flag('#'): + //nolint:errcheck // can't do anything about the write error state.Write([]byte(fmt.Sprintf("%v", uint64(b)))) default: + //nolint:errcheck // can't do anything about the write error state.Write([]byte(b.ToResourceQuantity().String())) } }