Skip to content
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

Merged
merged 3 commits into from
Feb 4, 2025
Merged

Use Proper File Separator for OS #459

merged 3 commits into from
Feb 4, 2025

Conversation

gmitch215
Copy link
Contributor

Uses \ on Windows when exporting to environment variable and to PATH, which should fix some issues on Windows.

@gmitch215
Copy link
Contributor Author

@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)
Copy link
Owner

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.

Copy link
Contributor Author

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 ? '\\' : '/'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most likely.

@fwilhe2
Copy link
Owner

fwilhe2 commented Feb 3, 2025

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 / as a separator.

Apart from that, there are a few things

  • not sure why the environment variable is remove
  • it seems like the compiled file is not up to date

Can you take care of this?

Thanks

@fwilhe2 fwilhe2 merged commit f4c7bf2 into fwilhe2:main Feb 4, 2025
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants