subo icon indicating copy to clipboard operation
subo copied to clipboard

Bundle file should use Directive AppName

Open cohix opened this issue 3 years ago • 5 comments

Instead of runnables.wasm.zip, we should name the file based on the appName in Directive.yaml, i.e. [email protected]

cohix avatar Dec 30 '21 19:12 cohix

hey @cohix

can I pick up this one?

me-diru avatar Feb 02 '22 16:02 me-diru

@kurious-diru hello! even though I filed this issue, I'm not actually sure if I think it's a good idea any more :) The main reason being that currently Atmo has a single filename to look for when starting up. If we start changing the name of the file, it would make it easier to know which file relates to which application, but it would also make it trickier for Atmo to figure out where to get the file from.

Interested to hear @javorszky and @jagger27 thoughts on this.

cohix avatar Feb 02 '22 18:02 cohix

Hm... what was the original reason why this came up? Does it matter what the file is called? Is the file used anywhere else besides internally as a transient step between a directive file and running the runnable? Does the filename appear in the logs? Would there be a situation where we'd need to tell the difference between logs from different files?

javorszky avatar Feb 03 '22 11:02 javorszky

@javorszky the main thing here is knowing which version the bundle is for. If I have a runnables.wasm.zip file that was built by subo build, I have no idea which version of the application this was for.

The name of the file doesn't actually matter, it's mostly for human-readable convenience reasons.

cohix avatar Feb 03 '22 21:02 cohix

Wouldn't you want to recompile the runnables before starting a dev server in either case? Knowing what version of the appliaction (I assume... reactr?) the wasm zip was build for is nice, but is that useful to know? What decisions does that inform?

javorszky avatar Feb 04 '22 10:02 javorszky