Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
List the artifacts sbt's launcher copies for offline use
Țugui Dragoș54fa5aee8858
diff --git a/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swift b/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swiftindex c54d9879..79292362 100644--- a/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swift+++ b/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swift@@ -672,6 +672,7 @@ public enum DeveloperCaches {]),Definition(id: "sbt", name: "sbt & Coursier", systemImage: "cup.and.saucer", appBundleIdentifiers: [], folders: [Folder(".sbt/boot", .downloads, source: "https://github.com/sbt/website/blob/5d50117e6ecf26a7557809a3d0c623c44cfc6d8c/src/reference/01-Faq/00.md#L283-L284"),+ Folder(".sbt/preloaded", .downloads, source: "https://github.com/sbt/sbt/blob/967147a876492075aed2e26517e38016186b2304/sbt#L450-L480"),Folder(".ivy2/cache", .downloads, source: "https://github.com/apache/ant-ivy/blob/e82f1882b1fdc580fc1c5dcd0935115ad963a747/asciidoc/settings/caches.adoc#L48"),// Only the cache. `Coursier/jvm` beside it holds the JVMs `cs java` installed, which `JAVA_HOME`// points at (https://get-coursier.io/docs/cache and https://get-coursier.io/docs/cli-java).diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swiftindex ff3796b0..863b6089 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swift@@ -1276,6 +1276,18 @@ struct DeveloperCachesTests {#expect(locations.allSatisfy { $0.kind == .cache && $0.isRecommended })}+ @Test func offersTheArtifactsSbtsLauncherCopiedForOfflineUse() async throws {+ let directory = try TemporaryDirectory()+ try directory.file(".sbt/preloaded/org/scala-sbt/sbt/1.11.7/sbt-1.11.7.jar", bytes: 400_000)+ try directory.file(".sbt/1.0/global.sbt", bytes: 64)+ let sbt = DeveloperCaches.definitions.filter { $0.id == "sbt" }++ let locations = await DeveloperCaches.scan(sbt, homeDirectory: directory.url).flatMap(\.locations)++ #expect(locations.map(\.url.lastPathComponent) == ["preloaded"])+ #expect(locations.allSatisfy { $0.kind == .downloads && $0.isRecommended })+ }+@Test func offersWhatRustupDownloadedAndNeverItsToolchains() async throws {let directory = try TemporaryDirectory()try directory.file(".rustup/downloads/4b1c.partial", bytes: 400_000)