Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list failed in linux ( Deserialization failed) #95

Open
Lambourl opened this issue Sep 22, 2022 · 3 comments
Open

list failed in linux ( Deserialization failed) #95

Lambourl opened this issue Sep 22, 2022 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Lambourl
Copy link

I have a pack that was created on windows, I wanted to check its content on my Ubuntu 20.04.
If I list I found my pack,

PACK                                                                       SNAPSHOTS SIZE     
loose/ba54343841542c1964b6b4064dc19982861fb310                             1         -        
windowspack                             1         0.057MiB 

But if I want to list all snapshot I have :

./elfshaker list windowspack

But I get this error :

[ERROR (main) 5.469347ms]: *FATAL*: Deserialization failed, corrupt pack index: cannot deserialize Windows OS string on Unix

An idea to succeed in using a windows pack on linux ?

@Lambourl Lambourl changed the title Deserialization failed in linux list failed in linux ( Deserialization failed) Sep 22, 2022
@peterwaller-arm
Copy link
Contributor

Because paths are represented differently on Windows and Linux, packs are not currently portable. We could theoretically support this (with limitations) with some effort. What is your use case? Our primary usecase is for binaries, which are not portable across operating systems anyway, so this limitation did not seem like a significant issue when we introduced it, but it sounds like something we may want to relax if this is important to you.

@Lambourl
Copy link
Author

Lambourl commented Sep 22, 2022

So my case is perhaps particular.
I use elfshaker to transport binaries from one Os to another. Without necessarily using them.

Let's take the case of my windows vm, I compile on it and I recover the binaries on linux, then I reuse them on my vm next time.

But I just wanted to check the presence of binaries in the pack from my linux, simple control

@peterwaller-arm peterwaller-arm added enhancement New feature or request help wanted Extra attention is needed labels Sep 22, 2022
@peterwaller-arm
Copy link
Contributor

Sorry about the limitation. I can't promise a fix on any timescale, which might rule out elfshaker for your usecase for now. If anyone fancies trying to fix this, help would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants