@@ -535,7 +535,7 @@ OPTIONS:
535
535
536
536
Running the ` package-registry unset ` subcommand
537
537
in the root directory of a package
538
- updates the ` .swiftpm/config ` file
538
+ updates the ` .swiftpm/config/registries.json ` file
539
539
to remove the ` default ` entry in the top-level ` registries ` key, if present.
540
540
If a ` --scope ` option is passed,
541
541
only the entry for the specified scope is removed, if present.
@@ -590,7 +590,7 @@ in descending order of precedence:
590
590
591
591
* The package manifest in the current directory (` ./Package.swift ` )
592
592
* Any existing lock file (` ./Package.resolved ` )
593
- * Any local configuration (` ./.swiftpm/config ` )
593
+ * Any local configuration (` ./.swiftpm/config/registries.json ` )
594
594
* Any global configuration file (` ~/.swiftpm/config/registries.json ` )
595
595
596
596
### Changes to config subcommand
@@ -609,7 +609,7 @@ $ swift package config set-mirror \
609
609
This proposal updates the ` swift package config set-mirror ` subcommand
610
610
to accept a ` --package-identifier ` option in place of an ` --original-url ` .
611
611
Running this subcommand with a ` --package-identifier ` option
612
- creates or updates the ` .swiftpm/config ` file,
612
+ creates or updates the ` .swiftpm/config/mirrors.json ` file,
613
613
modifying the array associated with the top-level ` object ` key
614
614
to add a new entry or update an existing entry
615
615
for the specified package identifier,
@@ -775,7 +775,7 @@ can both provide similar non-repudiation guarantees.
775
775
776
776
A user may inadvertently reveal the existence of a private registry
777
777
or expose hardcoded credentials
778
- by checking in their project's ` .swiftpm/config ` file .
778
+ by checking in their project's ` .swiftpm/config ` directory .
779
779
780
780
An attacker could scrape public code repositories for ` .swiftpm/config ` files
781
781
and attempt to reuse those credentials to impersonate the user.
@@ -812,7 +812,8 @@ is logged as `https://***@swift.pkg.github.com`).
812
812
### Denial of service
813
813
814
814
An attacker could scrape public code repositories
815
- for ` .swiftpm/config ` files that declare one or more custom registries
815
+ for ` .swiftpm/config/registries.json ` files
816
+ that declare one or more custom registries
816
817
and launch a denial-of-service attack
817
818
in an attempt to reduce the availability of those resources.
818
819
0 commit comments