@@ -456,16 +456,33 @@ go_repository(
456
456
go_repository (
457
457
name = "com_github_prometheus_client_golang" ,
458
458
importpath = "github.com/prometheus/client_golang" ,
459
- sum = "h1:rb93p9lokFEsctTys46VnV1kLCDpVZ0a/Y92Vm0Zc6Q=" , # Sum for v1.22.0
459
+ sum = "h1:rb93p9lokFEsctTys46VnV1kLCDpVZ0a/Y92Vm0Zc6Q=" ,
460
460
version = "v1.22.0" ,
461
461
# Add Gazelle arguments to exclude the Cgo-related files
462
462
# This might prevent Gazelle from setting cgo = True for the library
463
- build_extra_args = [
464
- "-exclude=prometheus/process_collector_mem_cgo_darwin.go" ,
465
- "-exclude=prometheus/process_collector_mem_cgo_darwin.c" ,
466
- ],
463
+ # build_extra_args = [
464
+ # "-exclude=prometheus/process_collector_mem_cgo_darwin.go",
465
+ # "-exclude=prometheus/process_collector_mem_cgo_darwin.c",
466
+ # ],
467
+ #patches = ["patches/prometheus_cgo.patch"],
467
468
)
468
469
470
+ # http_archive(
471
+ # name = "com_github_prometheus_client_golang",
472
+ # sha256 = "9ec5f0f04f0c9736619ce2c38e89802293be0b7060088ca6f8eeef10d07bf8a9",
473
+ # strip_prefix = "client_golang-1.22.0",
474
+ # urls = ["https://github.com/prometheus/client_golang/archive/refs/tags/v1.22.0.tar.gz"],
475
+ # patch_cmds = [
476
+ # "echo '--- Debugging patch_cmds ---'",
477
+ # "echo 'Current directory:'",
478
+ # "pwd",
479
+ # "echo 'Listing root directory:'",
480
+ # "ls -al",
481
+ # # Use sed to replace 'cgo = True,' with 'cgo = False,' in the root BUILD.bazel file.
482
+ # "sed -i 's/cgo = True,/cgo = False,/g' prometheus/BUILD.bazel" ,
483
+ # ],
484
+ # )
485
+
469
486
go_repository (
470
487
name = "com_github_prometheus_client_model" ,
471
488
importpath = "github.com/prometheus/client_model" ,
0 commit comments