nvidia-container-toolkit/internal/lookup
Jared Baur 5788e622f4 Use XDG_DATA_DIRS instead of hardcoding /usr/share
When running nvidia-ctk on a system that uses a custom XDG_DATA_DIRS
environment variable value, the configuration files for `glvnd`,
`vulkan`, and `egl` fail to get passed through from the host to the
container. Reading from XDG_DATA_DIRS instead of hardcoding the default
value allows for finding said files so they can be mounted in the
container.

Signed-off-by: Jared Baur <jaredbaur@fastmail.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2024-04-11 17:13:02 +02:00
..
cuda run goimports -local against the entire codebase 2023-12-01 11:13:17 +01:00
root Use XDG_DATA_DIRS instead of hardcoding /usr/share 2024-04-11 17:13:02 +02:00
symlinks Add symlinks package with Resolve function 2023-05-23 20:42:17 +02:00
device_test.go
device.go
dir.go Use functional options when constructing direcory locator 2023-07-18 15:36:03 +02:00
executable_test.go
executable.go Define a basic logger interface 2023-06-12 10:46:10 +02:00
file_test.go
file.go Remove duplicate not found error 2023-11-21 18:09:42 +01:00
library_test.go run goimports -local against the entire codebase 2023-12-01 11:13:17 +01:00
library.go Add support for specifying search paths 2023-11-22 13:27:47 +01:00
locator_mock.go Regenerate mocks for formatting 2023-04-25 11:26:55 +02:00
locator.go Add support for specifying search paths 2023-11-22 13:27:47 +01:00
merge.go Make library lookups more robust 2023-11-06 12:15:28 -06:00
path.go
symlinks.go Allow multiple pattern matches for symlinks 2023-11-17 10:43:52 +01:00