-
Notifications
You must be signed in to change notification settings - Fork 7
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
Use Proper File Separator for OS #459
Conversation
@fwilhe2 Any updates? |
@@ -33,29 +33,30 @@ async function run(): Promise<void> { | |||
if (installNative) { | |||
const ktNativePath = await tc.downloadTool(nativeDownloadUrl(version)) | |||
core.debug(`Downloaded Kotlin Native ${version} to ${ktNativePath}`) | |||
core.exportVariable('KOTLIN_NATIVE_HOME', ktNativePath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand how this is related to the pr.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's removing a duplicate statement. It does the same thing already below. I just forgot to include that in the description.
|
||
const ktNativePathExtractedFolder = await extractNativeArchive(ktNativePath) | ||
nativeCachedPath = await tc.cacheDir(ktNativePathExtractedFolder, 'kotlin-native', version) | ||
} | ||
} | ||
} | ||
|
||
const s = IS_WINDOWS ? '\\' : '/' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would path.sep
work instead? https://nodejs.org/docs/latest/api/path.html#pathsep
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most likely.
Hi @gmitch215 sorry for not getting back to you earlier, thanks for your contribution. I have not been aware of issues with this before, the action has tests that run on windows runners, is this really an issue? I think windows is just fine with using Apart from that, there are a few things
Can you take care of this? Thanks |
Uses
\
on Windows when exporting to environment variable and to PATH, which should fix some issues on Windows.