An image's build fails on Hyper-V when using additional build context. The same build works fine when using WSL as the machine provider.
copier: get: "/test": getting extended attributes for "/test": listing extended attributes of "/test": invalid argument
⚠️This error will be reproducible after we merge these PRs (1 and 2). Currently, podman build fails earlier with a different error message.
⚠️One way to address this problem would be to send the additional build contexts as tarfiles. However, investigating the root cause of this problem is still important as it can have other effects.
Steps to reproduce the issue
Steps to reproduce the issue
Create a folder context1 and add an empty file test in it
Create a folder context2 and add this Dockerfile:
FROM quay.io/libpod/alpine_nginx
COPY --from=test-context test /"
Run podman build --build-context test-context=.\context1 .\context2
Describe the results you received
STEP 2/2: COPY --from=test-context test /
Error: building at STEP "COPY --from=test-context test /": reading "/mnt/c/Users/mario/AppData/Local/Temp/ginkgo113287525/test": error during bulk transfer for copier.request{Request:"GET", Root:"/", preservedRoot:"/mnt/c/Users/mario/AppData/Local/Temp/ginkgo113287525", rootPrefix:"/mnt/c/Users/mario/AppData/Local/Temp/ginkgo113287525", Directory:"/", preservedDirectory:"/mnt/c/Users/mario/AppData/Local/Temp/ginkgo113287525", Globs:[]string{"/test"}, preservedGlobs:[]string{"/mnt/c/Users/mario/AppData/Local/Temp/ginkgo113287525/test"}, StatOptions:copier.StatOptions{CheckForArchives:false, Excludes:[]string(nil)}, GetOptions:copier.GetOptions{UIDMap:[]idtools.IDMap(nil), GIDMap:[]idtools.IDMap(nil), Excludes:[]string(nil), ExpandArchives:false, ChownDirs:(*idtools.IDPair)(nil), ChmodDirs:(*fs.FileMode)(nil), ChownFiles:(*idtools.IDPair)(nil), ChmodFiles:(*fs.FileMode)(nil), StripSetuidBit:false, StripSetgidBit:false, StripStickyBit:false, StripXattrs:false, KeepDirectoryNames:false, Rename:map[string]string(nil), NoDerefSymlinks:false, IgnoreUnreadable:false, NoCrossDevice:false}, PutOptions:copier.PutOptions{UIDMap:[]idtools.IDMap(nil), GIDMap:[]idtools.IDMap(nil), DefaultDirOwner:(*idtools.IDPair)(nil), DefaultDirMode:(*fs.FileMode)(nil), ChownDirs:(*idtools.IDPair)(nil), ChmodDirs:(*fs.FileMode)(nil), ChownFiles:(*idtools.IDPair)(nil), ChmodFiles:(*fs.FileMode)(nil), StripSetuidBit:false, StripSetgidBit:false, StripStickyBit:false, StripXattrs:false, IgnoreXattrErrors:false, IgnoreDevices:false, NoOverwriteDirNonDir:false, NoOverwriteNonDirDir:false, Rename:map[string]string(nil)}, MkdirOptions:copier.MkdirOptions{UIDMap:[]idtools.IDMap(nil), GIDMap:[]idtools.IDMap(nil), ChownNew:(*idtools.IDPair)(nil), ChmodNew:(*fs.FileMode)(nil)}, RemoveOptions:copier.RemoveOptions{All:false}}: copier: get: "/test": getting extended attributes for "/test": listing extended attributes of "/test": invalid argument
Issue Description
An image's build fails on Hyper-V when using additional build context. The same build works fine when using WSL as the machine provider.
⚠️This error will be reproducible after we merge these PRs (1 and 2). Currently,
podman build
fails earlier with a different error message. ⚠️One way to address this problem would be to send the additional build contexts as tarfiles. However, investigating the root cause of this problem is still important as it can have other effects.Steps to reproduce the issue
Steps to reproduce the issue
context1
and add an empty filetest
in itcontext2
and add this Dockerfile:podman build --build-context test-context=.\context1 .\context2
Describe the results you received
Describe the results you expected
The build should be successful
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting