mirror of
https://github.com/containers/podman.git
synced 2025-10-18 19:53:58 +08:00
run modernize -fix ./...
Using golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize + some manual cleanup in libpod/lock/shm/shm_lock_test.go as it generated an unused variable + restored one removed comment Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -70,7 +70,7 @@ func pullChunkedTests() { // included in pull_test.go, must use a Ginkgo DSL at
|
||||
dirPath: filepath.Join(imageDir, "chunked-normal"),
|
||||
}
|
||||
chunkedNormalContentPath := "chunked-normal-image-content"
|
||||
err := os.WriteFile(filepath.Join(podmanTest.TempDir, chunkedNormalContentPath), []byte(fmt.Sprintf("content-%d", rand.Int64())), 0o600)
|
||||
err := os.WriteFile(filepath.Join(podmanTest.TempDir, chunkedNormalContentPath), fmt.Appendf(nil, "content-%d", rand.Int64()), 0o600)
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
chunkedNormalContainerFile := fmt.Sprintf("FROM scratch\nADD %s /content", chunkedNormalContentPath)
|
||||
podmanTest.BuildImage(chunkedNormalContainerFile, chunkedNormal.localTag(), "true")
|
||||
|
Reference in New Issue
Block a user