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

Update kscript.hcl #360

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Update kscript.hcl #360

wants to merge 3 commits into from

Conversation

cgruber
Copy link
Contributor

@cgruber cgruber commented Jul 19, 2023

Add in a release-candidate to the versions, since kscript breaks on kotlin-1.9 without it.

@cgruber
Copy link
Contributor Author

cgruber commented Jul 19, 2023

Hmm. This is actually breaking because the older versions break on Kotlin 1.9. I'll have to be more persnickety about which versions require which versions of kotlin. Sigh.

@cgruber cgruber force-pushed the cgruber-patch-1 branch 11 times, most recently from 6faa9a9 to 8b40a92 Compare July 19, 2023 20:08
Add in a release-candidate to the versions, since kscript breaks on kotlin-1.9 without it.

Fix the version dependencies, to be more precise

Older versions can't use 1.9, so target their requires statements to 1.8*
kscript.hcl Outdated
}

version "4.2.3-RC.1" {
requires = ["jre@17", "kotlin"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thoughts:

  1. Keep it as ["jre", "kotlin"] since we want the latest.
  2. Put this at the top of the file, since it applies to all future versions. Leave the special case in the special case version block.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So... when it just had "jre" it broke in the macos build.

version "4.1.1" "4.2.0" "4.2.1" "4.2.2" {
requires = ["jre@17", "kotlin-1.8.22"]
test = "kscript \"\"" // The test rig can't install older kotlin to test these, but they've been tested prior.
Copy link
Collaborator

Choose a reason for hiding this comment

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

It can't install it???????????? 😱

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, let me rephrase - AFAICT it doesn't. I think each "test" in the foreach doesn't get its own hermit container.

@cgruber
Copy link
Contributor Author

cgruber commented Jul 25, 2023

Note, I've paused on this but I'll get back to it shortly.

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.

3 participants