-
I'm testing the ability of bass to do aggressive caching on a large project that need to be compiled multiple times, and within one step of the compilation, minor predictable changes need to be applied (some constants in a certain file needs to be changed every time). I'm thinking of generating the required files locally, then mounting the files into the container with BTW, this is my first time writing that much Lisp, feel free to point out if I've done something wrong. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
EDIT: This response was only accurate for about a week. See #6 (comment). Hey! (Bookkeeping: converted to a Discussion) You guessed it:
Bass's focus is building reproducible artifacts, so it maintains a pretty strict boundary between the script and the host machine. There's no way to write to the host machine, there's no way to read arbitrary files (besides Jury's out as to whether this can work in the long run - it's all experimental, but this is a pretty core aspect of the experiment. To explain part of your question, bass/runtimes/testdata/mount-local.bass Lines 1 to 5 in 585f9ba Back to the original ask: I'm not sure what kind of build flow you're going for, but it might be worth pointing out that Bass is meant to be the engine that runs your various build and delivery tools which themselves act on local files (mounted in by Bass). It doesn't replace tools like Bazel, Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Just an update, I'm considering adding support for passing host paths to thunks. I have a working proof of concept that I might just push once it's properly tested, etc. (edit: pushed to Following 9b78421, images can be built and used in code without ever having to be pushed to a registry. Being freed from managing images in a registry really makes it feel a lot nicer for local development, and it feels like a natural next step to extend that to source code, too. Here's how it works: to pass a local directory to thunks, create a Bass script in it and define a binding for This way you don't have to pass context dir paths to every One trade-off is that for now Bass only supports whatever platforms Buildkit supports. But overall it feels a lot more useful. |
Beta Was this translation helpful? Give feedback.
Just an update, I'm considering adding support for passing host paths to thunks. I have a working proof of concept that I might just push once it's properly tested, etc. (edit: pushed to
wip-host-paths
)Following 9b78421, images can be built and used in code without ever having to be pushed to a registry. Being freed from managing images in a registry really makes it feel a lot nicer for local development, and it feels like a natural next step to extend that to source code, too.
Here's how it works: to pass a local directory to thunks, create a Bass script in it and define a binding for
*dir*
. Modules that need it can then(load)
the script relative to their own*dir*
.This way you don't…