We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d61a420 commit 8770d05Copy full SHA for 8770d05
pkg/cdi/spec-dirs.go
@@ -45,10 +45,11 @@ var (
45
// WithSpecDirs returns an option to override the CDI Spec directories.
46
func WithSpecDirs(dirs ...string) Option {
47
return func(c *Cache) error {
48
- c.specDirs = make([]string, len(dirs))
+ specDirs := make([]string, len(dirs))
49
for i, dir := range dirs {
50
- c.specDirs[i] = filepath.Clean(dir)
+ specDirs[i] = filepath.Clean(dir)
51
}
52
+ c.specDirs = specDirs
53
return nil
54
55
0 commit comments