Skip to content

Commit 1fae69e

Browse files
committed
Store build data in the user root
Tag 0.20.0-rc-4 Fix tests
1 parent fe37807 commit 1fae69e

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

Sources/hostmgr/HostMgrCommand.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import libhostmgr
55
@main
66
struct Hostmgr: AsyncParsableCommand {
77

8-
private static var appVersion = "0.20.0-rc-3"
8+
private static var appVersion = "0.20.0-rc-4"
99

1010
static var configuration = CommandConfiguration(
1111
abstract: "A utility for managing VM hosts",

Sources/libhostmgr/Model/Paths.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,7 @@ extension Paths {
126126

127127
public static func buildkiteVMRootDirectory(forUser user: String) -> URL {
128128
#if arch(arm64)
129-
URL(fileURLWithPath: "/Users")
130-
.appendingPathComponent(user)
131-
.appendingPathComponent("Library")
132-
.appendingPathComponent("Application Support")
133-
.appendingPathComponent("com.buildkite.agent")
129+
URL(fileURLWithPath: "/Users").appendingPathComponent(user)
134130
#else
135131
URL(fileURLWithPath: "/usr/local/var/buildkite-agent")
136132
#endif

Tests/libhostmgrTests/Model/PathsTests.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ final class PathsTests: XCTestCase {
5959

6060
private var buildkiteRoot: URL {
6161
FileManager.default.homeDirectoryForCurrentUser
62-
.appendingPathComponent("Library")
63-
.appendingPathComponent("Application Support")
64-
.appendingPathComponent("com.buildkite.agent")
6562
}
6663

6764
func _bp(_ path: String) -> String {

0 commit comments

Comments
 (0)