melange build fails with `file exists` error
patrickpichler opened this issue · 0 comments
I am currently playing around with melange and encountered the issue, that pretty much every build fails with an file exists
error.
Here is the detailed error message:
2023/10/24 21:09:20 error during command execution: failed to build package: retrieving workspace: unable to ope
n file melange-out/hello-server/usr/bin/hello-server: open /tmp/melange/melange-workspace-3035665454/melange-out
/hello-server/usr/bin/hello-server: file exists
I am using this for testing.
I traced it down to the RetrieveWorkspace
method (source). Apparently, the WorkspaceDir
of the build is set to the same directory that is shared with the container. Hence all files in the targets.destdir
folder are already present and the build fails.
Am I doing anything wrong, or is this a bug?
Also I am on macos, use melange version 0.5.1 and use the lima
runner.
One more thing about the lima runner: I had to start it on my own, as the one created by melange did not start (another thing I didn't have time yet to debug).