Skip to content
This repository was archived by the owner on Jul 28, 2026. It is now read-only.

Commit a8553c9

Browse files
committed
delete: the dead swift-environment edge
The `.environment` accessor and the `swift-environment` package dependency were declared but referenced by no target — only `.environmentDependencies` is live, and `ServerFoundationEnvVars` re-exports `Environment_Dependencies`, which carries its own edge. SwiftPM had been warning `dependency 'swift-environment' is not used by any target` on every build. Pre-existing rather than orphaned by the InMemoryStore deletion: at bf7b9f0, before that change, the accessor was already declared and unused. Kept out of 4c7bae7 for that reason and taken here on its own, but it is the same dead-accessor-plus-dead-package-dependency shape as the Cache Primitives edge removed there. Gated: fresh compilation of both modules and the test target, 13/13 tests passed, swift-linter 0 errors, `swift-format lint --strict` exit 0, and the SwiftPM warning is gone from the build output.
1 parent 4c7bae7 commit a8553c9

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

Package.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ extension Target.Dependency {
2323
static var throttlingDependencies: Self { .product(name: "Throttling Dependencies", package: "swift-throttling-dependencies") }
2424
static var translatingDependencies: Self { .product(name: "Translating Dependencies", package: "swift-translating-dependencies") }
2525
static var environmentDependencies: Self { .product(name: "Environment Dependencies", package: "swift-environment-dependencies") }
26-
static var environment: Self { .product(name: "Environment", package: "swift-environment") }
2726
static var logging: Self { .product(name: "Logging", package: "swift-log") }
2827
static var throttling: Self { .product(name: "Throttling", package: "swift-throttling") }
2928
static var passwordValidation: Self { .product(name: "PasswordValidation", package: "swift-password") }
@@ -48,7 +47,6 @@ let package = Package(
4847
.library(name: .serverEnvVars, targets: [.serverEnvVars])
4948
],
5049
dependencies: [
51-
.package(url: "https://github.com/swift-foundations/swift-environment.git", branch: "main"),
5250
.package(url: "https://github.com/swift-foundations/swift-json-web-token.git", branch: "main"),
5351
.package(url: "https://github.com/swift-foundations/swift-password.git", branch: "main"),
5452
.package(url: "https://github.com/swift-foundations/swift-throttling.git", branch: "main"),

0 commit comments

Comments
 (0)