Commit Graph

6 Commits

Author SHA1 Message Date
Valentin Rothberg c3c4acc667 make validate: fix unused argument reports
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2023-06-16 17:08:25 +02:00
igo95862 1d23402d95 docs: Update OCI Runtime Specifications version referenced to 1.0.2
Podman supports the version 1.0.2 hooks such as `createRuntime`
since version 2.2.0

Closes #1370

Signed-off-by: igo95862 <igo95862@yandex.ru>
2023-03-18 18:16:40 +06:00
Valentin Rothberg e17483b871 bump to golangci-lint v1.50.0
Used `go fmt` rules to migrate away from deprecated functions, for
instance `gofmt -w -s -r 'ioutil.TempDir(a, b) -> os.MkdirTemp(a, b)'`

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-10-17 15:03:07 +02:00
Sascha Grunert 426d69c00f Switch to golang native error wrapping
`github.com/pkg/errors` is deprecated since quite some time so we now
use the native error wrapping for more idiomatic golang.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2022-07-12 10:54:07 +02:00
Aditya R ba0297a1a4 lint: gofumpt pkg/hooks
Signed-off-by: Aditya R <arajan@redhat.com>
2022-06-23 10:16:37 +05:30
Aditya R 3d17f9ca5f pkg: migrate hooks from podman to common
pkg/hooks is migrated from https://github.com/containers/podman/tree/main/pkg/hooks so both podman and buildah
can share it.

[NO NEW TESTS NEEDED]
[NO TESTS NEEDED]

Signed-off-by: Aditya R <arajan@redhat.com>
2022-06-23 10:11:57 +05:30