Skip to content

Commit ad1f928

Browse files
committed
s/path.Join/filepath.Join.
1 parent 7923130 commit ad1f928

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/installer/cpu.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func CPUInstall(platform, version, installPath string, useCache bool, verbosity
181181
if strings.HasPrefix(baseFile, "pjrt_c_api_cpu_") && strings.HasSuffix(baseFile, "_plugin.so") {
182182
// For Linux/Darwin:
183183
// Link file to the default CPU plugin, without the version number.
184-
linkPath := path.Join(installPath, "pjrt_c_api_cpu_plugin.so")
184+
linkPath := filepath.Join(installPath, "pjrt_c_api_cpu_plugin.so")
185185
if err := os.Remove(linkPath); err != nil && !os.IsNotExist(err) {
186186
return errors.Wrap(err, "failed to remove existing link")
187187
}
@@ -195,7 +195,7 @@ func CPUInstall(platform, version, installPath string, useCache bool, verbosity
195195

196196
} else if strings.HasPrefix(baseFile, "pjrt_c_api_cpu_") && strings.HasSuffix(baseFile, "_plugin.dll") {
197197
// Windows version of the CPU plugin.
198-
linkPath := path.Join(installPath, "pjrt_c_api_cpu_plugin.dll")
198+
linkPath := filepath.Join(installPath, "pjrt_c_api_cpu_plugin.dll")
199199
if err := os.Remove(linkPath); err != nil && !os.IsNotExist(err) {
200200
return errors.Wrap(err, "failed to remove existing link")
201201
}

0 commit comments

Comments
 (0)