Commit Graph

17 Commits

Author SHA1 Message Date
Miloslav Trmač 5953c36eee Update git-validation
... from a 6-year-old version

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2025-06-04 20:24:36 +02:00
Jan Rodák 52828e9aec
Prepare a golangci-lint installation for automatic update using renovate
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2024-08-19 11:14:21 +02:00
Jan Rodák 4f4c613f27
Update golangci-lint
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2024-08-16 12:22:19 +02:00
Giuseppe Scrivano 44ffef4556
tests: update golangci-lint
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-12-11 15:06:40 +01:00
Kir Kolyshkin 61b403716b tests/tools/Makefile: simplify golangci-lint installation
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2023-05-23 18:51:06 -07:00
Kir Kolyshkin f72893fcf1 tests/tools: fix go version in go.mod
Without the fix, building can complain like this:

> # golang.org/x/sys/unix
> vendor/golang.org/x/sys/unix/syscall.go:83:16: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)

Fixes: a3204cf7e8
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2023-05-23 18:51:06 -07:00
Kir Kolyshkin afb3da6540 Makefiles: simplify for modern go
Remove some old time artifacts, such as:
 - GO111MODULES, GO_PROXY, and MOD_VENDOR (no longer needed since go 1.14);
 - GIT_BRANCH (not needed since 2016, commit d855327b5e);
 - EPOCH_TEST_COMMIT (not needed since 2017, commit 230b9ab91a);

except that -mod=vendor is needed for go build in tests/tools.

Also remove:
 - PROJECT_ROOT (and use of "go list" for tests);
 - sources (go build is efficient so we can use it every time without
   using make to compare sources timestamps).

This makes makefiles less cluttered, and should also fix the following
golangci-lint error observed in CI:

> running gomoddirectives failed: failed to get module file: command
> go list: exit status 1: go: list -m cannot be used with GO111MODULE=off:
> if you are not using go modules it is suggested to disable this linter"

As a result, golangci-lint was effectively disabled.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2023-05-23 18:50:06 -07:00
Daniel J Walsh a3204cf7e8
Move to golang 1.18 and later
Github.com is reporting security issues on older versions of
golang.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-04-03 15:26:54 -04:00
Paul Holzinger bb74ff653c
fix inconsitent go build tags
Run `go fmt ./...` which automatically adds the new build tag syntax.
This change is backwards compatible.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2022-11-02 20:51:27 +01:00
Nalin Dahyabhai 9b9ab5401d tests/tools/Makefile: we don't use ffjson any more
We don't use ffjson any more, so don't try to build it.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2022-09-15 08:43:03 -04:00
Daniel J Walsh b3531c3df8
Vendor in opencontainers/runc v1.0.0
The RunningInUserNS Function was removed from libcontainer and is now
in contianerd.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-06-22 08:41:17 -04:00
Nalin Dahyabhai 4e3bb7e95f Remove dependencies on ffjson
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-05-06 12:04:23 -04:00
Daniel J Walsh 2f27b69d06
build(deps): bump github.com/hashicorp/go-multierror from 1.0.0 to 1.1.0
Bumps [github.com/hashicorp/go-multierror](https://github.com/hashicorp/go-multierror) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/hashicorp/go-multierror/releases)
- [Commits](hashicorp/go-multierror@v1.0.0...v1.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-06-25 12:47:58 -04:00
Sascha Grunert 360bf3033d
Update golangci lint to v1.24.0
Update the linter to the latest version

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-04-09 08:30:34 +02:00
Kir Kolyshkin 02ada824b3 go mod tidy
Looks like go.mod and go.sum contain a lot of cruft
accumulated over time, like indirect dependencies
or packages that were removed later.

This patch is a result of running `go mod tidy`
(from go-1.13.6) in root and `tests/tools` directories.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2020-03-04 10:20:11 -08:00
Sascha Grunert add656c547
Update golangci-lint to v1.23.1 and remove from vendoring
It is an upstream recommendation to not vendor golangci-lint and use the
pre-built binary instead. This means we now remove it from the vendored
sources and update the config as well.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-01-28 14:21:16 +01:00
Sascha Grunert 66c879f02a
Switch to golangci-lint
This commit uses internal tools vendoring to switch to golangci-lint. All
working linters have been enabled. The other tools have been vendored as
well into the same tools folder, whereas the corresponding test and
build targets have been adapted as well.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2019-07-17 11:13:06 +02:00