Skip to content

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?

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 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