Arve Seljebu
10/03/2024, 7:35 PM--no-configuration-cache
, the application gets the updated value.
Itβs reproducable from shell and IntelliJ and on other peoples machines, but not in a minimal viable example.
Example in shell
export SOME_ENV=a_value
./gradlew :project:run
# ctrl + c
export SOME_ENV=new_value
./gradlew :project:run # application gets SOME_ENV == a_value, both from System.getEnv and ktor environment.config.peroperty (HOCON)
In IntelliJ I edit environment variables in run-configuration and start. Same behaviour.
Can mention that when using debug mode in IntelliJ, it does break at a break-point in buildSrc when configuration cache is reused. But if I add --no-configuration-cache
to the run-configuration, it breaks every time.
Have tried -Dorg.gradle.caching.debug=true
, but could not see anything interesting.Arve Seljebu
10/03/2024, 7:43 PMVampire
10/03/2024, 8:51 PMorg.gradle.caching.debug
on the other hand is for build cache, so does not help you in any way regarding any issue with configuration cache.
You might get more appropriate attention if you delete your thread here and post it to #C013WEPGQF9 instead.Vampire
10/03/2024, 9:12 PMArve Seljebu
10/04/2024, 4:15 AMArve Seljebu
10/04/2024, 6:22 AMVampire
10/04/2024, 6:40 AMAha. Wondered about that. Read the title
All things relevant to caching.
..and took all literally. π
Yeah, that description pre-dates the existence of CC, and it is fine to ask CC questions in here, #C013WEPGQF9 might just be more appropriate and get attention of different people. Maybe @Oleg Nenashev should mention #C013WEPGQF9 in topic of this channel. :-)
Oleg Nenashev
10/04/2024, 6:43 AM