-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve build --oci error for missing XDG_RUNTIME_DIR
The buildkit code that we call as a dependency uses XDG_RUNTIME_DIR in multiple locations, so we cannot handle it being unset. Add a specific error for rootless build --oci with XDG_RUNTIME_DIR unset, so it is clear that this env var must be set. I don't think we should be setting XDG_RUNTIME_DIR ourselves, to a tmpdir we create. There is a strong assumption that this value is a genuine session specific directory that is configured by systemd, or by the user manually. Fixes #3410
- Loading branch information
Showing
2 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters