bindle icon indicating copy to clipboard operation
bindle copied to clipboard

Representation for native code

Open npmccallum opened this issue 3 years ago • 4 comments

I know that bindle was designed with WASM in mind. But I thought I'd just toss out something to think about. Bindle currently has no way to represent parcel's that are equivalent binaries for different CPU ISAs. For example, what if you build the same binary for x86_64 and aarch64? How should the client know which to download?

npmccallum avatar Dec 16 '21 14:12 npmccallum

The feature selection section in the label spec should provide a starting point for this. I think that if we specify some standard label / feature keys, this could be solved such as when requesting the bindle and a desired value for the label (in this case the architecture), the client would get the proper artifact.

radu-matei avatar Dec 16 '21 14:12 radu-matei

@radu-matei Indeed. I had a similar thought. However, I'm worried that this will become overloaded with other concerns like build versioning (#266) and build variants (#269). All three of these concerns are vying for the same space.

npmccallum avatar Dec 16 '21 15:12 npmccallum

See https://github.com/deislabs/bindle/issues/269#issuecomment-1016671469

WasmCloud already uses Bindle this way.

technosophos avatar Jan 19 '22 17:01 technosophos

Yep, see here for a full example

thomastaylor312 avatar Jan 19 '22 19:01 thomastaylor312