-
Notifications
You must be signed in to change notification settings - Fork 315
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
Persist changes between scripts when BuildSourcesEphemeral=true #2656
Comments
@kerneis-anssi Can you explain more about your use case? This would be rather complicated to change. |
My workflow involved pulling build dependencies locally during I have alternative ways to reach the same goal:
I'm not strongly advocating for you to implement this feature, especially if it's too complex. I think it would be useful to clarify the documentation though. |
@kerneis-anssi Can't you just download these to |
If the paths to use can be configured via environment variables I would actually be OK with setting those automatically in mkosi. |
Cargo (Rust) allows working from BUILDDIR. Go is really annoying because it will let you download the vendored dependencies anywhere, but then you need to put them under
I don't think that would solve my current issue, but I am indeed setting GOPATH, GOCACHE and others to somewhere inside BuildDirectory. I'll think about whether it makes sense to upstream those and let you know in a separate issue. Leaving this open as a reminder to update the doc if you agree (I'll let you close as you see fit). |
mkosi commit the issue has been seen with
main
Used host distribution
Fedora 39
Used target distribution
Fedora 40
Linux kernel version used
6.8.5-201.fc39.x86_64
CPU architectures issue was seen on
None
Unexpected behaviour you saw
The documentation for BuildSourcesEphemeral says:
I understood this to mean the following sequence of actions:
In practice, it looks like a different overlay is mounted before each script runs (then discarded). Or is it before each set of script runs (ie. is there a separate overlay for every prepare script, then every build script, etc. or one for all prepare scripts, one for all build scripts, etc.)?
I think the most useful behaviour is the one I was expecting, because when the prepare script runs against the build image, I expect the result to be available to the build stage. But in any case, even if you disagree and have a use case for the current behaviour, I think the documentation should be clarified.
Used mkosi config
No response
mkosi output
No response
The text was updated successfully, but these errors were encountered: