mirror of
https://github.com/sbt/sbt.git
synced 2026-09-04 00:41:32 +02:00
The commit388ed641fbadded an autoplugin that was compiled for every scripted test. Compiling autoplugins introduces a fair bit of overhead because it can easily take 3-4 seconds to compile with a cold compiler and even a warn compiler takes a second or so. Removing the instrumentation caused 3 tests to fail: 1. genereated-root-no-publish relied on setUpScripted modifing the project name. Explicitly setting the name in the project build.sbt fixed it. 2. cp-order I'm not sure why this change broke that test, but changing the coursier classpath ordering setting does not automatically trigger a reload on the next update. I have a more involved change that makes changing coursier settings invalidate the update cache but I'm markign the test as pending for now. It could be fixed by adding a call to `update` after `set csrConfiguration ~= (_.withClasspathOrder(false))` but I think it's better that the test actually reflect the expected behavior until I push the fix. 3. auto-plugins there was a hack that seemed added to address https://github.com/sbt/sbt/issues/3164. I cannot tell from either the issue or the linked PR what was going on and since removing the lines that were explicitly commented as being temporary fixed it, I figured it was ok to remove them. This reverts commite01f5f5ef1.