ostreedev / ostree-rs-ext

Rust library with higher level APIs on top of the core ostree API
Apache License 2.0
80 stars 26 forks source link

container: Fix importing to archive repos #495

Open cgwalters opened 1 year ago

cgwalters commented 1 year ago

Right now this fails due to https://github.com/ostreedev/ostree/blob/a113b2be3f597c2e4368f840063da70389e26fb0/src/libostree/ostree-repo-commit.c#L2745

Perhaps the simplest hack is to spawn a helper thread which writes the tar stream to a pipe, and then point a GUnixInputStream at the read side of the pipe

dbnicholson commented 1 year ago

I'd love if the root problem of pulling into an archive repo was fixed since I've run into that limitation in the past. Not a huge deal, though.

cgwalters commented 1 year ago

@dbnicholson This only applies to containers, are you using that now?

dbnicholson commented 1 year ago

@dbnicholson This only applies to containers, are you using that now?

Ah, no I'm not. There's some other feature that's not supported with archive mode repos, but I can't recall what it is. Carry on!