Is there a way to build older versions of kotlin n...
# kotlin-native
k
Is there a way to build older versions of kotlin native locally? It seems like the dependencies needed to build expire or are removed at some point. I’ve made a new branch at the 1.3.72 release, but running
./gradlew dependencies:update
fails with
Copy code
A problem occurred evaluating project ':backend.native:tests'.
> Could not resolve all files for configuration ':backend.native:tests:update_tests'.
   > Could not resolve org:Kotlin_KotlinRelease_1370_Compiler:1.3.72-eap-463.
     Required by:
         project :backend.native:tests
      > Could not resolve org:Kotlin_KotlinRelease_1370_Compiler:1.3.72-eap-463.
         > Could not get resource '<https://buildserver.labs.intellij.net/guestAuth/repository/download/Kotlin_KotlinRelease_1370_Compiler/1.3.72-eap-463/teamcity-ivy.xml>'.
            > Could not GET '<https://buildserver.labs.intellij.net/guestAuth/repository/download/Kotlin_KotlinRelease_1370_Compiler/1.3.72-eap-463/teamcity-ivy.xml>'. Received status code 400 from server: Bad Request
I’ve seen similar issues in the past. Running
./gradlew dependencies:update
for master seems to work fine.
e
The problem is that in
v1.3.70-fixes
artifacts for tests are downloaded from private buildserver. If you don't need tests you can just turn off subproject
:backend.native:tests
. Or we can do a fix. Why do you need to build
1.3.72
and can't use master?
k
I occasionally do some dev in the runtime. More so when native was newer. I haven’t done it in a while. Specifically, I was going to look at adding some more debug info when the freeze operation fails. Just locally. In the past, for various reasons (compiler crash, etc), I’ve found it useful to debug the compiler. It’s easier to do this on a production version because you likely won’t have 3rd party klib libraries available for master. I wouldn’t say I “need” it. Was playing with it yesterday, and was curious why old versions don’t build. So, not really a priority, but there are some cases where it would be useful.
e