1
0
mirror of https://github.com/containers/image.git synced 2025-04-18 19:44:05 +03:00

112 Commits

Author SHA1 Message Date
renovate[bot]
205e2ef343
chore(deps): update dependency golangci/golangci-lint to v2.1.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-16 15:27:06 +00:00
renovate[bot]
1d14076788
chore(deps): update dependency golangci/golangci-lint to v2.1.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-12 22:31:45 +00:00
renovate[bot]
5ac5b8ef56
chore(deps): update dependency golangci/golangci-lint to v2.0.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-26 19:59:29 +00:00
renovate[bot]
ff238bc950 chore(deps): update dependency golangci/golangci-lint to v2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2025-03-26 20:17:59 +01:00
renovate[bot]
729fb5aa7a
chore(deps): update dependency golangci/golangci-lint to v1.64.8
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-17 22:45:19 +00:00
renovate[bot]
c8cf826ecc
chore(deps): update dependency golangci/golangci-lint to v1.64.7
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-12 16:35:48 +00:00
Kir Kolyshkin
931070e8b8 Makefile: mark all phony targets as such
Quite a few phony targets were not marked as such. Fix this.

While at it, let's mark those individually, in place, so it's easier
to remember and check.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-03-04 12:40:49 -08:00
Kir Kolyshkin
fd7479fe6a Makefile,.cirrus.yml: remove obsoleted build tag
Since commit 8ca60c5d we use c/storage with devicemapper driver removed,
so libdm_no_deferred_remove is no longer in use.

Remove it.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-03-04 12:37:04 -08:00
renovate[bot]
72ab11c7c2
chore(deps): update dependency golangci/golangci-lint to v1.64.6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-03 23:58:09 +00:00
renovate[bot]
73f20a7977
Update dependency golangci/golangci-lint to v1.64.5
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-17 17:54:59 +00:00
renovate[bot]
68166ea3af
Update dependency golangci/golangci-lint to v1.64.4
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-12 23:40:59 +00:00
renovate[bot]
17d7b76b2a
Update dependency golangci/golangci-lint to v1.64.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-12 20:53:56 +00:00
renovate[bot]
d19195754c
Update dependency golangci/golangci-lint to v1.63.4
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-03 22:12:56 +00:00
renovate[bot]
5f717509e7
Update dependency golangci/golangci-lint to v1.63.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-02 19:48:15 +00:00
renovate[bot]
92bed1f2ce
Update dependency golangci/golangci-lint to v1.63.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-02 14:26:35 +00:00
renovate[bot]
6e36e49b4a
chore(deps): update dependency golangci/golangci-lint to v1.62.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-25 17:00:01 +00:00
renovate[bot]
f0bd6dde51
chore(deps): update dependency golangci/golangci-lint to v1.62.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-14 20:55:09 +00:00
renovate[bot]
3305f18366
Update dependency golangci/golangci-lint to v1.61.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-09 19:54:32 +00:00
renovate[bot]
1ea9a4c105
[CI:DOCS] Update dependency golangci/golangci-lint to v1.60.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-27 12:38:34 +00:00
renovate[bot]
ac9a7a98d3
[CI:DOCS] Update dependency golangci/golangci-lint to v1.60.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-20 22:07:45 +00:00
renovate[bot]
2fe9fc9a37 [CI:DOCS] Update dependency golangci/golangci-lint to v1.60.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-15 22:38:23 +02:00
renovate[bot]
c9eef487f1
[CI:DOCS] Update dependency golangci/golangci-lint to v1.59.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-09 22:32:45 +00:00
renovate[bot]
4885d6c695
[CI:DOCS] Update dependency golangci/golangci-lint to v1.59.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-26 21:58:36 +00:00
renovate[bot]
2b816dc4fd
[CI:DOCS] Update dependency golangci/golangci-lint to v1.58.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 23:23:02 +00:00
renovate[bot]
6fee5e8dfe
[CI:DOCS] Update dependency golangci/golangci-lint to v1.58.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-03 19:33:37 +00:00
renovate[bot]
abd369f71a
[CI:DOCS] Update dependency golangci/golangci-lint to v1.57.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-28 20:38:28 +00:00
Miloslav Trmač
b6b60bf5af Stop setting GO111MODULE=on
It's the default since Go 1.16.

In theory the environment might be setting it to off, and breaking
our builds; unless something compelling comes up, I think that
hypothetical environment should be changed, nowadays.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2024-03-26 17:57:52 +01:00
Miloslav Trmač
d847108fb4 Use (go install) instead of (go get)
This use of (go get) was deprecated back in Go 1.18.

Also don't use our build tags for building unrelated tools.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2024-03-26 17:57:52 +01:00
renovate[bot]
0e17438e5a
[CI:DOCS] Update dependency golangci/golangci-lint to v1.57.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-20 18:08:52 +00:00
renovate[bot]
bda8e1fb61
[CI:DOCS] Update dependency golangci/golangci-lint to v1.57.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-20 16:36:00 +00:00
renovate[bot]
ab693fbc7e
[CI:DOCS] Update dependency golangci/golangci-lint to v1.56.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-15 18:24:21 +00:00
renovate[bot]
64f90178c4
[CI:DOCS] Update dependency golangci/golangci-lint to v1.56.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-08 18:44:48 +00:00
renovate[bot]
bc53cca68e
[CI:DOCS] Update dependency golangci/golangci-lint to v1.56.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-07 18:38:34 +00:00
Daniel J Walsh
8eabe0f6b3
Merge pull request #2214 from yarikoptic/enh-codespell
Embrace codespell: config, workflow (to alert when new typos added) and get typos fixed
2023-12-14 15:22:17 -05:00
Rahil Bhimjiani
45441676e3
Moving policy.json and default.yaml from containers/skopeo
It makes more sense to keep these 2 files along with their man
pages...in c/image
https://github.com/containers/common/pull/1757

Signed-off-by: Rahil Bhimjiani <me@rahil.website>
2023-12-10 04:46:35 +05:30
Yaroslav Halchenko
3e888e48bf Add codespell config while moving some config options from Makefile
Signed-off-by: Yaroslav Halchenko <debian@onerussian.com>
2023-12-08 16:20:31 -05:00
renovate[bot]
24bc0a89f5
[CI:DOCS] Update dependency golangci/golangci-lint to v1.55.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-03 18:28:40 +00:00
Miloslav Trmač
f215eef551 Let Renovate automatically update golangci-lint
... like it does in other repos.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2023-11-03 16:17:35 +01:00
Miloslav Trmač
885f4146c1 Stop installing golint
It isn't actually used anymore.

This might speed up tests a bit.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2023-11-03 16:17:35 +01:00
Daniel J Walsh
30568e81f8
Run codespell on codebase
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-02-09 09:12:11 -05:00
Miloslav Trmač
521155ffe6 Update to golangci-lint 1.51.0
This is required for support of Go 1.20.

Also avoid a call to math/rand.Read, which is deprecated in Go 1.20.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2023-02-06 21:15:29 +01:00
Daniel J Walsh
54944117d8
Vendor in latest containers/storage
Had to add vendor-in-container in Makefile to make
go mod tidy work on my machine

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2022-12-20 13:21:52 -05:00
Miloslav Trmač
e78fa04729 Update golangci-lint
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2022-09-06 19:23:57 +02:00
Miloslav Trmač
bc3a2df8de
Update golangci-lint to 1.47.2
This is the currently latest version. Primary reason
is to add support for running against Go 1.18, to allow updating
base images.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2022-07-29 14:14:47 -04:00
Miloslav Trmač
8a6354627d Stop calling gpgme-config
As of the just-updated github.com/proglottis/gpgme 0.1.2,
the gpgme subpackage uses CGo's native #cgo pkg-config support
to find the relevant libraries, and we no longer need to manually set
CGO_CFLAGS and CGO_LDFLAGS. So stop doing that.

Note that the proglottis/gpgme update (already before this commit)
means the minimal supported version of GPGME is 1.13.0.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2022-05-19 21:42:40 +02:00
James Hewitt
aa6d7d9ea5
Use go env to fetch the go path
If both GOBIN and GOPATH aren't set in the system environment then the
makefile will attempt to install to /bin. go env uses a sensible default
of $HOME/go if GOPATH isn't set.

Signed-off-by: James Hewitt <james.hewitt@uk.ibm.com>
2022-05-11 15:27:16 +01:00
Miloslav Trmač
c2b7df8183 Remove unused Makefile variables
The Skopeo branch to test against is now driven by
SKOPEO_CI_TAG in .cirrus.yml, these are not used by anything.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2022-05-04 21:09:57 +02:00
Miloslav Trmač
d95221d002 Try to make (make lint) pass with Go 1.18
This is an attempt to fix (make lint), which complains:
> pkg/tlsclientconfig/tlsclientconfig_test.go:37:20: SA1019: tlsc.RootCAs.Subjects is deprecated: if s was returned by SystemCertPool, Subjects will not include the system roots. (staticcheck)
>       for _, s := range tlsc.RootCAs.Subjects() {
>                         ^
> pkg/tlsclientconfig/tlsclientconfig_test.go:43:20: SA1019: systemCertPool.Subjects is deprecated: if s was returned by SystemCertPool, Subjects will not include the system roots. (staticcheck)
>       for _, s := range systemCertPool.Subjects() {
>                         ^
> pkg/tlsclientconfig/tlsclientconfig_test.go:53:20: SA1019: tlsc.RootCAs.Subjects is deprecated: if s was returned by SystemCertPool, Subjects will not include the system roots. (staticcheck)
>       for _, s := range tlsc.RootCAs.Subjects() {

... but the same staticcheck linter, for some reason, does NOT
complain about these deprecated fields; the correct //lint:ignore
comments are ineffective and actually cause extra warnings.

So, silence all of staticcheck via //nolint , hopefully temporarily.

(Also, note that golangci-lint itself, with this update,
crashes with https://github.com/golangci/golangci-lint/issues/2374 ;
a local rebuild does not crash, but still fails per the above.)

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2022-03-15 20:31:32 +01:00
Miloslav Trmač
56d235670a Remove the no_libsubid build tag
After https://github.com/containers/storage/pull/986 the feature
is opt-in, so we don't need to opt out.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2021-08-10 20:24:42 +02:00
dependabot[bot]
4264c7d3a8 build(deps): bump github.com/containers/storage from 1.33.1 to 1.33.2
Bumps [github.com/containers/storage](https://github.com/containers/storage) from 1.33.1 to 1.33.2.
- [Release notes](https://github.com/containers/storage/releases)
- [Changelog](https://github.com/containers/storage/blob/main/docs/containers-storage-changes.md)
- [Commits](https://github.com/containers/storage/compare/v1.33.1...v1.33.2)

---
updated-dependencies:
- dependency-name: github.com/containers/storage
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2021-08-09 16:48:13 +02:00