[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
45/74: gnu: go-github-com-prometheus-common: Move to prometheus.
From: |
guix-commits |
Subject: |
45/74: gnu: go-github-com-prometheus-common: Move to prometheus. |
Date: |
Thu, 25 Jul 2024 18:02:27 -0400 (EDT) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit 392b0f2dd53caf3f35cdacd6f3ce8e6541954c95
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Wed Jul 24 21:41:54 2024 +0100
gnu: go-github-com-prometheus-common: Move to prometheus.
* gnu/packages/golang.scm (go-github-com-prometheus-common): Move from
here ...
* gnu/packages/prometheus.scm: ... to here.
Change-Id: I344f9b5b62569b3a0fde6ed96621f409bb7350a9
---
gnu/packages/golang.scm | 65 -------------------------------------------
gnu/packages/prometheus.scm | 68 +++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 68 insertions(+), 65 deletions(-)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 57b15435df..3c19f5abb1 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -7349,71 +7349,6 @@ system.")
formatting information, rather than the current locale name.")
(license license:expat))))
-(define-public go-github-com-prometheus-common
- (package
- (name "go-github-com-prometheus-common")
- (version "0.55.0")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/prometheus/common")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0bsbxil7qz8rhckhv0844nmn38g7i7347cjv5m6na47hbdpi0rqh"))
- (modules '((guix build utils)))
- (snippet
- #~(begin
- ;; Submodules with their own go.mod files and packed as
- ;; separated packages:
- ;;
- ;; - github.com/prometheus/common/assets
- ;; - github.com/prometheus/common/sigv4
- (for-each delete-file-recursively
- (list "assets" "sigv4"))))))
- (build-system go-build-system)
- (arguments
- (list
- #:import-path "github.com/prometheus/common"
- #:phases
- #~(modify-phases %standard-phases
- ;; XXX: Workaround for go-build-system's lack of Go modules support.
- (delete 'build)
- (replace 'check
- (lambda* (#:key tests? import-path #:allow-other-keys)
- (when tests?
- (with-directory-excursion (string-append "src/" import-path)
- (invoke "go" "test" "-v"
- ;; "./config/..." requries
- ;; <github.com/prometheus/client_golang/prometheus>,
- ;; which introduce cycle.
- "./expfmt/..."
- "./helpers/..."
- "./model/..."
- "./promlog/..."
- "./route/..."
- "./server/..."))))))))
- (native-inputs
- (list go-github-com-stretchr-testify))
- (propagated-inputs
- (list go-github-com-alecthomas-kingpin-v2
- go-github-com-go-kit-log
- go-github-com-google-go-cmp
- go-github-com-julienschmidt-httprouter
- go-github-com-munnerz-goautoneg
- go-github-com-mwitkow-go-conntrack
- go-github-com-prometheus-client-model
- go-golang-org-x-net
- go-golang-org-x-oauth2
- go-google-golang-org-protobuf
- go-gopkg-in-yaml-v2))
- (synopsis "Prometheus metrics")
- (description "This package provides tools for reading and writing
-Prometheus metrics.")
- (home-page "https://github.com/prometheus/common")
- (license license:asl2.0)))
-
(define-public go-github-com-prometheus-procfs
(package
(name "go-github-com-prometheus-procfs")
diff --git a/gnu/packages/prometheus.scm b/gnu/packages/prometheus.scm
index 997cf4e503..843d5fa604 100644
--- a/gnu/packages/prometheus.scm
+++ b/gnu/packages/prometheus.scm
@@ -1,5 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
;;; Copyright © 2018, 2019, 2020 Leo Famulari <leo@famulari.name>
+;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
;;; Copyright © 2024 Jesse Eisses <jesse@eisses.email>
;;;
;;; This file is part of GNU Guix.
@@ -115,6 +117,72 @@ x/net/trace)} tracing wrappers @code{net.Conn}, both
inbound
"This package provides data model artifacts for Prometheus.")
(license license:asl2.0)))
+(define-public go-github-com-prometheus-common
+ (package
+ (name "go-github-com-prometheus-common")
+ (version "0.55.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/prometheus/common")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0bsbxil7qz8rhckhv0844nmn38g7i7347cjv5m6na47hbdpi0rqh"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin
+ ;; Submodules with their own go.mod files and packed as
+ ;; separated packages:
+ ;;
+ ;; - github.com/prometheus/common/assets
+ ;; - github.com/prometheus/common/sigv4
+ (for-each delete-file-recursively
+ (list "assets" "sigv4"))))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/prometheus/common"
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; XXX: Workaround for go-build-system's lack of Go modules support.
+ (delete 'build)
+ (replace 'check
+ (lambda* (#:key tests? import-path #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion (string-append "src/" import-path)
+ (invoke "go" "test" "-v"
+ ;; "./config/..." requries
+ ;; <github.com/prometheus/client_golang/prometheus>,
+ ;; which introduce cycle.
+ "./expfmt/..."
+ "./helpers/..."
+ "./model/..."
+ "./promlog/..."
+ "./route/..."
+ "./server/..."))))))))
+ (native-inputs
+ (list go-github-com-stretchr-testify))
+ (propagated-inputs
+ (list go-github-com-alecthomas-kingpin-v2
+ go-github-com-go-kit-log
+ go-github-com-google-go-cmp
+ go-github-com-julienschmidt-httprouter
+ go-github-com-munnerz-goautoneg
+ go-github-com-mwitkow-go-conntrack
+ go-github-com-prometheus-client-model
+ go-golang-org-x-net
+ go-golang-org-x-oauth2
+ go-google-golang-org-protobuf
+ go-gopkg-in-yaml-v2))
+ (home-page "https://github.com/prometheus/common")
+ (synopsis "Prometheus metrics")
+ (description
+ "This package provides tools for reading and writing Prometheus
+metrics.")
+ (license license:asl2.0)))
+
;;;
;;; Executables:
;;;
- 12/74: gnu: go-google-golang-org-protobuf: Move to golang-build., (continued)
- 12/74: gnu: go-google-golang-org-protobuf: Move to golang-build., guix-commits, 2024/07/25
- 13/74: gnu: go-github-com-golang-protobuf: Move to golang-build., guix-commits, 2024/07/25
- 23/74: gnu: go-github-com-go-test-deep: Update to 1.1.1., guix-commits, 2024/07/25
- 25/74: gnu: go-github-com-burntsushi-toml: Update to 1.4.0., guix-commits, 2024/07/25
- 20/74: gnu: go-go-etcd-io-gofail: Update to 0.2.0., guix-commits, 2024/07/25
- 28/74: gnu: go-github-com-aws-aws-sdk-go: Update to 1.55.2., guix-commits, 2024/07/25
- 27/74: gnu: Remove go-github-com-aws-sdk., guix-commits, 2024/07/25
- 32/74: gnu: nebula: Update to 1.9.3., guix-commits, 2024/07/25
- 35/74: gnu: go-github-com-prometheus-client-model: Move to prometheus., guix-commits, 2024/07/25
- 40/74: gnu: Add go-github-com-go-logfmt-logfmt., guix-commits, 2024/07/25
- 45/74: gnu: go-github-com-prometheus-common: Move to prometheus.,
guix-commits <=
- 52/74: gnu: csvdiff: Adjust inputs, guix-commits, 2024/07/25
- 55/74: gnu: go-github-com-prometheus-client-golang: Enable tests., guix-commits, 2024/07/25
- 56/74: gnu: go-github-com-prometheus-client-golang: Move to prometheus., guix-commits, 2024/07/25
- 59/74: gnu: go-github-com-prometheus-procfs: Move to prometheus., guix-commits, 2024/07/25
- 60/74: gnu: go-github-com-hjson-hjson-go: Update to 4.4.0., guix-commits, 2024/07/25
- 61/74: gnu: go-github-com-hjson-hjson-go: Rename variable., guix-commits, 2024/07/25
- 64/74: gnu: go-netns: Enable tests., guix-commits, 2024/07/25
- 46/74: gnu: Add go-github-com-prometheus-common-assets., guix-commits, 2024/07/25
- 47/74: gnu: Add go-github-com-prometheus-common-sigv4., guix-commits, 2024/07/25
- 65/74: gnu: go-netns: Rename varialbe., guix-commits, 2024/07/25