Commit graph

27352 commits

Author SHA1 Message Date
Paul Holzinger
1de60ebf7b
test/e2e: skip "sshd and API services required"
The test assumes a local id_ed25519 ssh key exists and is setup to
connect to its own user. That is basically never the case locally so the
test is broken by design.

If the test should run in some special CI setup where that is the case
we need to enable it and guard based on that later.

For now I just like to get the lima VM tests passing.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-05-27 12:44:39 +02:00
Paul Holzinger
39ee9baf66
test/system: fix "add username to /etc/passwd if --userns=keep-id"
The test assumed /home/$USER == $HOME which may not be the case. In fact
it is not the case in the new lima VM runners.

Fix the test to actually use the path we want to test for, $HOME.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-05-27 12:44:39 +02:00
Paul Holzinger
9aca6010ee
test/system: skip "IPv6 default address assignment"
It is not working in all ipv6 setups. In the new lima testing env
default_addr is just null causing the test to fail because the container
address was "fec0::5055:55ff:fe2b:6cc9".

For now skip this until we can figure something better out.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-05-27 12:44:39 +02:00
Paul Holzinger
8cc0a6774e
Merge pull request #28797 from kolyshkin/stop-gap
.cirrus.yml: do not run golangci-lint for freebsd and mac
2026-05-27 12:43:52 +02:00
Kir Kolyshkin
c22f67e729 .cirrus.yml: do not run golangci-lint for freebsd and mac
Since PR 28760 linting is done for all OSes on linux, so there's no need
to run golangci-lint on Mac and FreeBSD separately. This also fixes the
issue of mixing up golangci-lint caches between different Mac OS X runs.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-26 14:23:48 -07:00
Paul Holzinger
cbcd40fb9f
Merge pull request #28791 from TomSweeneyRedHat/dev/tsweeney/6.0-libs-bump
Bump c/common 0.68.0, c/image 5.40.0, c/storage 1.63.0
2026-05-26 21:38:26 +02:00
Tom Sweeney
41a99a651f Bump c/common 0.68.0, c/image 5.40.0, c/storage 1.63.0
Bump the following:

c/common to v0.68.0
c/image to v5.40.0
c/storage to v1.63.0

in preparation for Podman 6.0.

Buildah still needs to be bumped and vendored, but thought I'd get this
part going while waiting for that.

Signed-off-by: Tom Sweeney <tsweeney@redhat.com>
2026-05-26 12:59:40 -04:00
Brent Baude
e581ddc253
Merge pull request #28731 from lstocchi/hyperv_enhancements
Fixes for Hyper-V user experience
2026-05-26 10:30:18 -05:00
Brent Baude
195cceba72
Merge pull request #28756 from containers/renovate/github.com-hugelgupf-p9-0.x
Update module github.com/hugelgupf/p9 to v0.4.1
2026-05-26 10:06:41 -05:00
Brent Baude
ac4099f38f
Merge pull request #28766 from Honny1/fix-tutorial-docs
Clarify inspect example in basic setup tutorial
2026-05-26 10:05:57 -05:00
Brent Baude
320dcc8034
Merge pull request #28775 from Honny1/skip-pesto-tests
Skip pasta forwarder tests pending passt SELinux fix
2026-05-26 08:46:28 -05:00
Matt Heon
faa1f85136
Merge pull request #28780 from erictrue/patch-1
Fix an obvious typo
2026-05-26 08:35:14 -04:00
Paul Holzinger
22c5f3fa55
Merge pull request #28527 from vyasgun/pr/krunkit-timesync
machine: add vfkit timesync device for Apple VMs
2026-05-26 12:23:04 +02:00
Paul Holzinger
1c6d8a0a89
Merge pull request #28759 from kolyshkin/modernize-3
Assorted go modernize fixes
2026-05-26 12:20:31 +02:00
Jan Rodák
5b98ee331f
Merge pull request #28641 from jiwahn/feat/container-annotation-filter
Feat/container annotation filter
2026-05-26 12:00:40 +02:00
Giuseppe Scrivano
cf11327daf
Merge pull request #28786 from OverOrion/add-axoflow-to-adopters
Add Axoflow to ADOPTERS.md
2026-05-26 11:14:34 +02:00
Jan Rodák
751f7c316d
Merge pull request #28714 from christopherbii/main
Fix Missing HostConfig field from API response
2026-05-26 10:26:46 +02:00
Jan Rodák
e99809239c
Merge pull request #28763 from kolyshkin/drop-unused
contrib/cirrus/prebuild.sh: drop unused get_env_key
2026-05-26 10:25:32 +02:00
Jan Rodák
752755025d
Merge pull request #28760 from kolyshkin/hack-golangci
Improvements for hack/golangci-lint.sh
2026-05-26 10:14:25 +02:00
Szilard Parrag
eede8790a0
Add Axoflow to ADOPTERS.md
Signed-off-by: Szilard Parrag <szilard.parrag@axoflow.com>
2026-05-26 08:20:46 +02:00
Kir Kolyshkin
e9ec0ecef5 Makefile: run golangci-lint for all supported OSes
Amend golangci-lint target to also run linters on all supported OSes
in addition to a native run.

Use CGO_ENABLED=0 because Makefile sets CGO_ENABLED=1, and
cross-compilation tools are probably not available.

Use GOARCH=arm64 for darwin because since commit f87cefc Mac builds are
arm64-only.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-25 17:49:14 -07:00
Kir Kolyshkin
cf021c4ba9 hack: reuse already installed golangci-lint
When a specific version of golangci-lint is already available in $PATH,
use it instead of installing one locally.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-25 12:23:30 -07:00
Eric True
ffb05a0921
Update krunkit.entitlements
Signed-off-by: Eric True <272747804+erictrue@users.noreply.github.com>
2026-05-26 02:09:43 +08:00
Jan Rodák
43fc762a47
Merge pull request #28752 from kolyshkin/drop-git-validation
ci: replace git-validation with a small shell script
2026-05-25 15:48:21 +02:00
Jan Rodák
3f427f4535
Skip pasta forwarder tests pending passt SELinux fix
The pasta_t SELinux domain is denied { create } for pasta.sock
on ifconfig_var_run_t directories. Disable all pasta forwarder
tests (BATS + e2e) until a new passt release ships the fix.

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2026-05-25 12:31:26 +02:00
Jan Rodák
2162404eaf
Clarify inspect example in basic setup tutorial
Fixes: https://github.com/containers/podman/issues/28762

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2026-05-25 10:58:07 +02:00
lstocchi
6e98a49e03
inspect: use per-machine provider for GetMachineDirs
inspect was using the default system provider (machineProvider) to resolve machine directories instead of the provider returned by shim.VMExists for the specific machine. This caused incorrect results (e.g. listing WSL dirs when inspecting a Hyper-V machine).

Signed-off-by: lstocchi <lstocchi@redhat.com>
2026-05-25 00:10:29 +02:00
lstocchi
f96cbda1b0
hyperv: propagate detailed error from Hyper-V permission checks
Change isHyperVAdminMember from returning a bool to returning an error so that callers surface the specific failure reason — particularly distinguishing "not in the group" from "in the group but session not updated" (new ErrHypervUserSessionNotUpdated sentinel). This gives users actionable guidance instead of a generic permission error.

Signed-off-by: lstocchi <lstocchi@redhat.com>
2026-05-25 00:10:18 +02:00
Kir Kolyshkin
d8fd8afad1 contrib/cirrus/prebuild.sh: drop unused get_env_key
The last user of get_env_key was removed by commit
69163af2a0 ("Remove gitleaks scanning").

Remove it.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-23 14:26:55 -07:00
Kir Kolyshkin
d4f60b5826 libpod: some modernize fixes for freebsd and darwin
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-22 14:15:49 -07:00
Kir Kolyshkin
329ce86835 test/e2e: modernize
Generated by go1.26.3 fix ./test/e2e/...

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-22 13:11:01 -07:00
Kir Kolyshkin
bf78f80b00 Replace strings.Split(..)[0] with strings.Cut
These places were ignored by modernize, so I did some grepping and
editing.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-22 13:08:56 -07:00
Kir Kolyshkin
63166293c8 cmd/podman: replace strings.Split with strings.Cut
Suggested by latest modernize.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-22 12:36:26 -07:00
Kir Kolyshkin
b4d0747baa pkg/systemd/parser: use slices.Backward
Suggested by modernize (aka go fix).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-22 12:28:16 -07:00
Kir Kolyshkin
7797dcb2ab pkg/domain/infra/abi: modernize
Use slices.Contains instead of for loop. Suggested by modernize
(aka go fix).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-22 12:26:59 -07:00
Kir Kolyshkin
121948d69e pkg/rootless: modernize
Using modernize (aka go fix) from Go 1.26.3, implement the following
changes:

> pkg/rootless/rootless_linux.go:319:30: fmtappendf: Replace []byte(fmt.Sprintf...) with fmt.Appendf (modernize)
> 		err = os.WriteFile(uidMap, []byte(fmt.Sprintf("%d %d 1\n", 0, os.Geteuid())), 0o666)
> 		                           ^
> pkg/rootless/rootless_linux.go:339:30: fmtappendf: Replace []byte(fmt.Sprintf...) with fmt.Appendf (modernize)
> 		err = os.WriteFile(gidMap, []byte(fmt.Sprintf("%d %d 1\n", 0, os.Getegid())), 0o666)
> 		                           ^
> pkg/rootless/rootless_linux.go:381:6: rangeint: for loop can be modernized using range over int (modernize)
> 	for sig := 0; sig < numSig; sig++ {
> 	    ^
> pkg/rootless/rootless_linux.go:432:24: stringsseq: Ranging over SplitSeq is more efficient (modernize)
> 	for _, entry := range bytes.Split(data, []byte{0}) {
> 	                      ^

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-22 12:25:21 -07:00
Kir Kolyshkin
f45b4c506a ci: replace git-validation with a small shell script
Since commit def70012b9 git-validation is only used to check if the
commit subject is less than 90 characters.

Drop the vendored git-validation Go tool and the .gitvalidation make
target in favor of hack/commit-subject-check.sh.

This removes a Go build dependency and a vendored tree from
test/tools/ while keeping the same CI and local behavior.

Note the now-removed GIT_CHECK_EXCLUDE was not used by gitvalidation
since commit def70012b9 because it was not checking any specific
files, just the commit subject lengths.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-22 11:43:59 -07:00
Paul Holzinger
bd7e8bbab3
Merge pull request #28755 from kolyshkin/editorconfig
.editorconfig: add indentation rule for shell files
2026-05-22 18:37:01 +02:00
Daniel J Walsh
f524bce46a
Merge pull request #28753 from kolyshkin/os-is
Stop using os.Is{Exist,NotExist,Permission} checks
2026-05-22 05:18:45 -04:00
renovate[bot]
a4b755e1e6
Update module github.com/hugelgupf/p9 to v0.4.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-22 00:01:01 +00:00
Tom Sweeney
3fb897f154
Merge pull request #28747 from kolyshkin/lint-nits
Remove unused nolint annotations
2026-05-21 19:58:34 -04:00
Kir Kolyshkin
5c5389dddd .editorconfig: add indentation rule for shell files
EditorConfig is a way to specify some basic code formatting rules
independently of an $EDITOR being used.

Add rules for bats/bash/sh files:
 - use 4 spaces for indentation (which appears to be a de-facto standard
   in this repository, see e.g. commit 86e55d0ec1);
 - ignore everything in vendor directories.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-21 16:50:11 -07:00
Kir Kolyshkin
b2b552749d ci: rm contrib/cirrus/check_go_changes.sh
This functionality is superseded by golangci-lint.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-21 13:16:32 -07:00
Kir Kolyshkin
730934bd86 .golangci.yml: deny using obsoleted os.Is... checks
They were replaced by errors.Is by the previous commit, and shall not
crawl back in.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-21 13:14:55 -07:00
Kir Kolyshkin
7f7b35356f Replace os.Is* error checks with errors.Is
Using os.Is{Exist,NotExist,Permission} checks is not recommended in the
new code (see official documentation). While using it in the existing
code is OK, it may still result in a subtle errors later (for a specific
example of that, see [1]).

Replace those with errors.Is.

Generated by:

	gofmt -r 'os.IsExist(a) -> errors.Is(a, os.ErrExist)' -w .
	gofmt -r 'os.IsNotExist(a) -> errors.Is(a, os.ErrNotExist)' -w .
	gofmt -r 'os.IsPermission(a) -> errors.Is(a, os.ErrPermission)' -w .
	goimports -w .
	git diff vendor test/tools/vendor | patch -p1 -R

[1]: https://github.com/opencontainers/runc/pull/5061
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-21 13:09:42 -07:00
Paul Holzinger
2d09c79dfe
Merge pull request #28478 from Honny1/pesto-support
Rootless bridge: preserve source IPs via pesto/pasta
2026-05-21 14:51:40 +02:00
Paul Holzinger
23cc1a30fb
Merge pull request #28735 from mvanhorn/fix/28298-podman-io-community-trailing-slash
docs(api): drop trailing slash on podman.io/community contact URL
2026-05-21 07:56:03 +02:00
Brent Baude
1c843ac37d
Merge pull request #28742 from containers/renovate/github.com-vbauerster-mpb-v8-8.x
fix(deps): update module github.com/vbauerster/mpb/v8 to v8.12.1
2026-05-20 21:05:23 -05:00
Kir Kolyshkin
a7886d1fe8 Remove unused nolint annotations
The interfacer linter was removed a few years ago.

Remove the annotations as well.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-20 15:02:25 -07:00
Jan Rodák
baf8fa6223
Document pasta forwarding mode for rootless bridge networks
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2026-05-20 14:24:48 +02:00