Failed to stage: parts with files with different contents

Hello,

I’m building a snap and I’m getting the following error message on the stage part:

Failed to stage: Parts X and Y have the following files, but with different contents:
lib64

I understand I can use stage keyword to select which files I want to stage, but the problem I see is that lib64 is actually a folder, is there a way to merge the folder from different parts during the stage process?

If I do snapcraft --debug and inspect the files under install for part X and Y, the contents are the following:

Part X
lib64/ld-linux-x86-64.so.2

Part Y
lib64/python3.8/....

I don’t see a reason why the lib64 folder couldn’t be merged.
Thanks!
Sam

1 Like

I’m having this same problem. Any guidance?

Ah, I get it. This is a link, not a directory.

Hey @sam.dieck and @elopio,

I stumbled on your question while trying to fix this issue myself. I had the same exact problem. The fix for it is in this forum post. Take care!