Switch to Pigweed mirrors of Zephyr

This has a performance benefit for CI, and is in line with Pigweed's
preference for using pigweed-hosted mirrors.

Change-Id: I76ccce1c685da4a65bfd5ca98a83e5491cb7822f
Reviewed-on: https://pigweed-review.googlesource.com/c/zephyr/zephyr-bazel/+/331117
Reviewed-by: Yicheng Li <yichengli@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Armando Montanez <amontanez@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Pigweed-Auto-Submit: Armando Montanez <amontanez@google.com>
diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock
index a84b465..33a2702 100644
--- a/MODULE.bazel.lock
+++ b/MODULE.bazel.lock
@@ -326,7 +326,7 @@
     },
     "//:setup.bzl%zephyr_patch_file": {
       "general": {
-        "bzlTransitiveDigest": "9QLn1qhX+VYVjhH9KEflk9mdzyZyjqfBCjhSvEH7gXo=",
+        "bzlTransitiveDigest": "6mKrxdkcvXntb/nqMT1+bfDXMb0Fsa2yJ7cIXwQibXk=",
         "usagesDigest": "RVNwyfPDgis/SqD/297nR3A3R1kaySCId18dLUfxTLc=",
         "recordedFileInputs": {},
         "recordedDirentsInputs": {},
@@ -342,7 +342,7 @@
           "zephyr": {
             "repoRuleId": "@@bazel_tools//tools/build_defs/repo:git.bzl%git_repository",
             "attributes": {
-              "remote": "https://github.com/zephyrproject-rtos/zephyr.git",
+              "remote": "https://pigweed.googlesource.com/third_party/github/zephyrproject-rtos/zephyr",
               "branch": "main",
               "patches": [
                 "@@+zephyr_patch_file+zephyr-patch//:patch.diff"
diff --git a/examples/hello_bazel/MODULE.bazel b/examples/hello_bazel/MODULE.bazel
index d3ae8db..2db98c3 100644
--- a/examples/hello_bazel/MODULE.bazel
+++ b/examples/hello_bazel/MODULE.bazel
@@ -68,7 +68,7 @@
     name = "zephyr",
     # Use a local file::// to override the Zephyr git repo and avoid downloads
     # remote = "file:///path/to/zephyrproject/zephyr"
-    remote = "https://github.com/zephyrproject-rtos/zephyr.git",
+    remote = "https://pigweed.googlesource.com/third_party/github/zephyrproject-rtos/zephyr",
     # ROLL: Warning: this entry is automatically updated.
     # ROLL: Last updated 2025-03-06.
     # ROLL: By https://cr-buildbucket.appspot.com/build/8721116211536533505.
diff --git a/examples/hello_bazel/MODULE.bazel.lock b/examples/hello_bazel/MODULE.bazel.lock
index 8f62277..05f663f 100644
--- a/examples/hello_bazel/MODULE.bazel.lock
+++ b/examples/hello_bazel/MODULE.bazel.lock
@@ -1445,7 +1445,7 @@
     "@@rules_python+//python/extensions:pip.bzl%pip": {
       "general": {
         "bzlTransitiveDigest": "iY7mrt+XX65TGGfyPVYNBdJs0vGROLBtcAnFIQ8Ze4s=",
-        "usagesDigest": "H/6ggH5ovGtTDggqHfLTin7Wb3Z9+PSooQokF3s33eA=",
+        "usagesDigest": "q9uXqGawAvOU+l8L69Ob8p24/psNKwxmb6W1eniY48M=",
         "recordedFileInputs": {
           "@@+_repo_rules2+zephyr//scripts/requirements-base.txt": "3a22dfc399714d2ffbd4c42dfba2e86468a443c04a8743931b6906178fc13706",
           "@@nanopb+//extra/requirements_lock.txt": "2bcdca24f1a4429b4ab0f0bb80cca292a92e12f7bf3d0f46de7c2b14fd97ac25",
@@ -42249,7 +42249,7 @@
     "@@zephyr-bazel+//:kconfig.bzl%kconfig": {
       "general": {
         "bzlTransitiveDigest": "rkocEoPu2cdyWtWZvz24rTnhNbOguxRkn4GjCFSbUJU=",
-        "usagesDigest": "gODyGBD59z8vSSv2OPmFw48L0UecHqMWe5ZH9n2sKpU=",
+        "usagesDigest": "7ZFLTtjgTWJlvJbOLC1n8YyLVlCliOy+dhcrP2vuIA8=",
         "recordedFileInputs": {},
         "recordedDirentsInputs": {},
         "envVariables": {},
@@ -42274,7 +42274,7 @@
     },
     "@@zephyr-bazel+//:setup.bzl%zephyr_patch_file": {
       "general": {
-        "bzlTransitiveDigest": "9QLn1qhX+VYVjhH9KEflk9mdzyZyjqfBCjhSvEH7gXo=",
+        "bzlTransitiveDigest": "6mKrxdkcvXntb/nqMT1+bfDXMb0Fsa2yJ7cIXwQibXk=",
         "usagesDigest": "T4ExgMV+DuOdBaHHBi1jk+V5yIQe1+rB+BGq/NLv/qw=",
         "recordedFileInputs": {},
         "recordedDirentsInputs": {},
@@ -42290,7 +42290,7 @@
           "zephyr": {
             "repoRuleId": "@@bazel_tools//tools/build_defs/repo:git.bzl%git_repository",
             "attributes": {
-              "remote": "https://github.com/zephyrproject-rtos/zephyr.git",
+              "remote": "https://pigweed.googlesource.com/third_party/github/zephyrproject-rtos/zephyr",
               "branch": "main",
               "patches": [
                 "@@zephyr-bazel++zephyr_patch_file+zephyr-patch//:patch.diff"
diff --git a/examples/hello_dts/MODULE.bazel b/examples/hello_dts/MODULE.bazel
index 44630c1..0333fc8 100644
--- a/examples/hello_dts/MODULE.bazel
+++ b/examples/hello_dts/MODULE.bazel
@@ -68,7 +68,7 @@
     name = "zephyr",
     # Use a local file::// to override the Zephyr git repo and avoid downloads
     # remote = "file:///path/to/zephyrproject/zephyr"
-    remote = "https://github.com/zephyrproject-rtos/zephyr.git",
+    remote = "https://pigweed.googlesource.com/third_party/github/zephyrproject-rtos/zephyr",
     # ROLL: Warning: this entry is automatically updated.
     # ROLL: Last updated 2025-03-06.
     # ROLL: By https://cr-buildbucket.appspot.com/build/8721116211536533505.
diff --git a/examples/hello_dts/MODULE.bazel.lock b/examples/hello_dts/MODULE.bazel.lock
index 8f62277..3f64812 100644
--- a/examples/hello_dts/MODULE.bazel.lock
+++ b/examples/hello_dts/MODULE.bazel.lock
@@ -42274,7 +42274,7 @@
     },
     "@@zephyr-bazel+//:setup.bzl%zephyr_patch_file": {
       "general": {
-        "bzlTransitiveDigest": "9QLn1qhX+VYVjhH9KEflk9mdzyZyjqfBCjhSvEH7gXo=",
+        "bzlTransitiveDigest": "6mKrxdkcvXntb/nqMT1+bfDXMb0Fsa2yJ7cIXwQibXk=",
         "usagesDigest": "T4ExgMV+DuOdBaHHBi1jk+V5yIQe1+rB+BGq/NLv/qw=",
         "recordedFileInputs": {},
         "recordedDirentsInputs": {},
@@ -42290,7 +42290,7 @@
           "zephyr": {
             "repoRuleId": "@@bazel_tools//tools/build_defs/repo:git.bzl%git_repository",
             "attributes": {
-              "remote": "https://github.com/zephyrproject-rtos/zephyr.git",
+              "remote": "https://pigweed.googlesource.com/third_party/github/zephyrproject-rtos/zephyr",
               "branch": "main",
               "patches": [
                 "@@zephyr-bazel++zephyr_patch_file+zephyr-patch//:patch.diff"
diff --git a/setup.bzl b/setup.bzl
index 898c771..a04d731 100644
--- a/setup.bzl
+++ b/setup.bzl
@@ -105,7 +105,7 @@
     )
     git_repository(
         name = "zephyr",
-        remote = "https://github.com/zephyrproject-rtos/zephyr.git",
+        remote = "https://pigweed.googlesource.com/third_party/github/zephyrproject-rtos/zephyr",
         branch = "main",
         patches = [
             "@zephyr-patch//:patch.diff",
@@ -202,7 +202,7 @@
 
     for variable, value in template_dict.items():
         template_content = template_content.replace("@" + variable + "@", value)
-    
+
     for variable, value in template_dict.items():
         template_content = template_content.replace("@" + variable + "@", value)