Commit Graph

12227 Commits

Author SHA1 Message Date
Lukas Rytz e46843bfd9 Add setting to allow demoting the SIP-51 build failure
Add a `allowUnsafeScalaLibUpgrade` setting (default is `false`) to
demote the SIP-51 build failure to a warning.

If the scalaVersion is 2.13.12 but some dependency pulls in
scala-library 2.13.13, the compiler will stay at 2.13.12, but
the dependency classpath will contain scala-library 2.13.13.

This usually works, the compiler can run fine with a newer
scala-library on its dependency classpath.
Macro expansion may fail, if the macro uses some library
class / method that doesn't exist in the old version.
The macro itself is loaded from the dependency classpath
into the class loader running the compiler, where the older
Scala library is on the runtime classpath.
Using the Scala REPL in sbt may also fail in a similar fashion.
2025-01-20 10:00:13 +01:00
eugene yokota d99163b945
Merge pull request #8005 from dwickern/fix-npe
Fix race condition in NetworkChannel
2025-01-11 22:26:21 -05:00
Derek Wickern f0afda3dd0 make NetworkChannel#thread private 2025-01-11 13:08:18 -08:00
Derek Wickern a13bfd3ef9 fix race condition in NetworkChannel 2025-01-11 12:46:35 -08:00
eugene yokota fde334bdd6
Merge pull request #7983 from Friendseeker/lazy-previous-compile
[1.x] Avoid upstream compilation when calling `previousCompile`
2024-12-30 23:38:14 -05:00
friendseeker c834f500b9
Add comment 2024-12-30 19:30:15 -08:00
Friendseeker 1a8fa65af3 Avoid upstream compilation when calling previousCompile 2024-12-30 17:55:42 -08:00
adpi2 011c7083ad
Merge pull request #7913 from Friendseeker/sbt-7510
[1.x] Implement `jvmBuildTarget` for `workspace/buildTargets`
2024-12-30 09:06:53 +01:00
eugene yokota 038d9b28e4
Merge pull request #7969 from Friendseeker/clean-zinc-cache
[1.x] Clear Zinc Analysis Cache during `Compile / clean`, `Test / clean`
2024-12-28 23:57:59 -05:00
Friendseeker 13373415b3 Fix CI 2024-12-26 18:43:04 -08:00
friendseeker e23419efed Clean Zinc Cache for 'Compile / clean', 'Test / clean' 2024-12-26 15:37:33 -08:00
Friendseeker 838eee97cd Fix CI 2024-12-26 15:05:00 -08:00
Friendseeker 655310061f Add unit test 2024-12-26 14:56:18 -08:00
Friendseeker ad0ab07e99 Return jvmBuildTarget for workspace/buildTargets 2024-12-26 12:24:14 -08:00
Eugene Yokota 3529e20279 sbt 1.10.7 2024-12-22 21:26:54 -05:00
eugene yokota 03dc7172a7
Merge pull request #7970 from eed3si9n/wip/lm-coursier
[1.x] csrMavenDependencyOverride + Update lm-coursier to 2.1.7 + Zinc 1.10.7
2024-12-22 20:12:54 -05:00
Eugene Yokota de04f1f847 Update lm-coursier to 2.1.7
**Problem**
BOM support current has perf issues.

**Solution**
This bumps Coursier to 2.1.22.

This also adds a new setting `csrMavenDependencyOverride`,
which will default to false.
2024-12-22 19:59:49 -05:00
eugene yokota bb796dc0e4
Merge pull request #7966 from eed3si9n/wip/allow-empty
[1.x] fix: --allow-empty fixes
2024-12-22 03:37:04 -05:00
Eugene Yokota cd58481811 --allow-empty fixes
**Problem**
1. Currently users are automatically opted into -create-sbt,
   somewhat implicitly.
2. When somehow they are not, the check mechanism currently blocks for input.

**Solution**
1. Support a new location for sbtopts file under XSG_CONFIG_HOME/sbt
2. Rename -create-sbt to --allow-empty, and don't opt everyone in
3. Exit 1 instead of blocking for input
2024-12-22 02:21:38 -05:00
eugene yokota e81cfa21e2
Merge pull request #7968 from eed3si9n/wip/glob-fix
[1.x] fix: Fixes glob in scripted
2024-12-22 02:19:56 -05:00
Eugene Yokota 72c061a2a2 fix: Fixes glob in scripted
**Problem**
Absolute path handling regressed.

**Solution**
Create an absolute glob for expression starting with /.
2024-12-22 01:32:16 -05:00
eugene yokota e218c107f0
Merge pull request #7962 from Friendseeker/restore-disabled-test
[1.x] Restore disabled Multirepo integration test
2024-12-20 03:54:02 -05:00
friendseeker 7312398695
Restore Multirepo integration test 2024-12-20 00:12:57 -08:00
eugene yokota 7c5aea78ff
Merge pull request #7957 from Friendseeker/prepare-sbt-1-10-7
[1.x] Prepare for sbt `1.10.7`
2024-12-19 16:30:29 -05:00
Friendseeker 30c7be8d0d Prepare for sbt 1.10.7 2024-12-19 12:26:37 -08:00
eugene yokota 4318b5384b
Merge pull request #7952 from Friendseeker/bump-jline-2
[1.x] Bump JLine 2 to `9a88bc4`
2024-12-17 21:50:15 -05:00
Seth Tisue 4ad6745a64
Merge pull request #7953 from Friendseeker/new-cla
[1.x] Use new Scala CLA checker
2024-12-17 16:43:00 -08:00
Friendseeker e606b1f794 Use new Scala CLA checker 2024-12-17 14:58:29 -08:00
Friendseeker 3bdfc34c6b Bump JLine 2 to 9a88bc 2024-12-17 14:37:44 -08:00
eugene yokota 66935c460d
Merge pull request #7947 from eed3si9n/wip/giter8-0.17.0
[1.x] Update to Giter8 0.17.0
2024-12-14 23:12:20 -05:00
Eugene Yokota c3e4bc53c4 Giter8 0.17.0
**Problem/Solution**
Bump to Giter8 0.17.0.
2024-12-14 01:42:48 -05:00
eugene yokota f61100fe87
Merge pull request #7933 from eed3si9n/bport/exists
[1.x] feat: Support glob expressions in scripted
2024-12-09 02:55:22 -05:00
Eugene Yokota d21b2d250a feat: Support glob expressions in scripted
**Problem**
It's currently not easy to write a scripted test that works on
both sbt 1.x and 2.x when you want to write exists test under target.

**Solution**
Since we can only use the file system (and not evaluate Scala version etc)
1. this implements glob expression support in `exists`, `absent`, and `delete`.
2. this also introduces `||` operator that would mean a or b.
2024-12-08 23:38:00 -05:00
eugene yokota f996ad1a01
Merge pull request #7929 from eed3si9n/bport/cla
[1.x] New Scala CLA URL
2024-12-05 22:53:52 -05:00
Eugene Yokota ff4e6d90af New Scala CLA URL 2024-12-05 22:51:16 -05:00
Eugene Yokota 1b7d451d2a sbt 1.10.6 2024-11-30 01:24:29 -05:00
eugene yokota 8bdcb380f1
Merge pull request #7922 from eed3si9n/wip/bump-zinc
[1.x] Update to Zinc 1.10.5
2024-11-30 01:02:32 -05:00
Eugene Yokota 111eb123fa Call store.clearCache() 2024-11-30 00:51:20 -05:00
Eugene Yokota efe2a83c73 Zinc 1.10.5 2024-11-30 00:05:26 -05:00
eugene yokota 52cf06d80e
Merge pull request #7921 from eed3si9n/wip/bump-io
IO 1.10.2
2024-11-29 21:50:51 -05:00
eugene yokota b7e03605cd
Merge pull request #7920 from eed3si9n/wip/bump-coursier
lm-coursier 2.1.6
2024-11-29 21:48:55 -05:00
Eugene Yokota fc5758d05c IO 1.10.2 2024-11-29 21:39:42 -05:00
Eugene Yokota 57d134829b Mark ignoreScalaLibrary pending 2024-11-29 21:37:27 -05:00
Eugene Yokota 25f4150aa7 lm-coursier 2.1.6
deps: Update Coursier to 2.1.14 → 2.1.19 in https://github.com/coursier/sbt-coursier/pull/539
   * https://github.com/coursier/coursier/releases/tag/v2.1.15
   * https://github.com/coursier/coursier/releases/tag/v2.1.16
   * https://github.com/coursier/coursier/releases/tag/v2.1.17
   * https://github.com/coursier/coursier/releases/tag/v2.1.18
   * https://github.com/coursier/coursier/releases/tag/v2.1.19
2024-11-29 21:10:57 -05:00
adpi2 1e5827ee5a
Merge pull request #7895 from Androz2091/patch-1
fix/support-ostype-linux-sbtn
2024-11-28 11:48:52 +01:00
eugene yokota f03ff1f32b
Merge pull request #7916 from Friendseeker/ctrl-c-background-task 2024-11-27 20:23:28 -05:00
friendseeker b49fe9dc97
Add boolean flag isAutoCancel
Address PR feedback from Eugene
2024-11-27 01:30:01 -08:00
adpi2 aa76149129
Merge pull request #7919 from Friendseeker/sbt-7918
[1.x] Fix Flaky Test: `sbt.TagsTest`
2024-11-27 10:26:15 +01:00
friendseeker e613cb70ea
Avoid generation of negative frequency 2024-11-27 00:52:57 -08:00
Friendseeker 9494033bd6 Shutdown background jobs when pressing ctrl+c 2024-11-26 23:40:23 -08:00