From 77be1bbfdd000124798bb9fd87668b51476f93e2 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Wed, 14 Dec 2022 18:47:03 +0100 Subject: [PATCH] .codespellexcludefile: Silence false positives Otherwise codespell would complain: : {"/tmp", "/run/host/tmp", "rslave"}, > {"/var/lib/flatpak", "/run/host/var/lib/flatpak", "ro"}, : {"/var/lib/libvirt", "/run/host/var/lib/libvirt", ""}, ./src/cmd/initContainer.go:61: ro ==> to, row, rob, rod, roe, rot CentOS Stream 9 has codespell-2.2.1, while so far the 'unit tests' were being run on Fedora 36, which only has codespell-2.1.0. This is a step towards testing on CentOS Stream 9. https://github.com/containers/toolbox/pull/1200 --- .codespellexcludefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.codespellexcludefile b/.codespellexcludefile index ac5d38d..98835af 100644 --- a/.codespellexcludefile +++ b/.codespellexcludefile @@ -1 +1,15 @@ + usr_mount_destination_flags="ro" + toolbox_profile_bind="--volume /etc/profile.d/toolbox.sh:/etc/profile.d/toolbox.sh:ro" + toolbox_profile_bind="--volume /usr/share/profile.d/toolbox.sh:/etc/profile.d/toolbox.sh:ro" + if echo "$usr_mount_source_flags" | grep --invert-match "ro" >/dev/null 2>&3; then + --volume "$TOOLBOX_PATH":/usr/bin/toolbox:ro \ + if ! mount_bind /run/host/etc/machine-id /etc/machine-id ro; then + if ! mount_bind /run/host/var/lib/flatpak /var/lib/flatpak ro; then + if ! mount_bind /run/host/var/log/journal /var/log/journal ro; then if strings.Contains(command.Name(), "complet") { + toolboxPathMountArg := toolboxPath + ":/usr/bin/toolbox:ro" + toolboxShMountArg := mount.source + ":" + mount.containerPath + ":ro" + {"/etc/machine-id", "/run/host/etc/machine-id", "ro"}, + {"/var/lib/flatpak", "/run/host/var/lib/flatpak", "ro"}, + {"/var/lib/systemd/coredump", "/run/host/var/lib/systemd/coredump", "ro"}, + {"/var/log/journal", "/run/host/var/log/journal", "ro"},