mirror of
https://github.com/NotAShelf/watchdog.git
synced 2026-04-19 00:20:05 +00:00
chore: bump dependencies
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6ec7858564223f643a2ceea8b104827a6a6a6964
This commit is contained in:
parent
9efabc8f76
commit
675f8cc1c7
3 changed files with 50 additions and 33 deletions
2
go.mod
2
go.mod
|
|
@ -31,7 +31,7 @@ require (
|
||||||
github.com/spf13/cast v1.10.0 // indirect
|
github.com/spf13/cast v1.10.0 // indirect
|
||||||
github.com/spf13/pflag v1.0.10 // indirect
|
github.com/spf13/pflag v1.0.10 // indirect
|
||||||
github.com/subosito/gotenv v1.6.0 // indirect
|
github.com/subosito/gotenv v1.6.0 // indirect
|
||||||
go.yaml.in/yaml/v2 v2.4.3 // indirect
|
go.yaml.in/yaml/v2 v2.4.4 // indirect
|
||||||
go.yaml.in/yaml/v3 v3.0.4 // indirect
|
go.yaml.in/yaml/v3 v3.0.4 // indirect
|
||||||
golang.org/x/sys v0.41.0 // indirect
|
golang.org/x/sys v0.41.0 // indirect
|
||||||
golang.org/x/text v0.34.0 // indirect
|
golang.org/x/text v0.34.0 // indirect
|
||||||
|
|
|
||||||
2
go.sum
2
go.sum
|
|
@ -67,6 +67,8 @@ go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
|
||||||
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
||||||
go.yaml.in/yaml/v2 v2.4.3 h1:6gvOSjQoTB3vt1l+CU+tSyi/HOjfOjRLJ4YwYZGwRO0=
|
go.yaml.in/yaml/v2 v2.4.3 h1:6gvOSjQoTB3vt1l+CU+tSyi/HOjfOjRLJ4YwYZGwRO0=
|
||||||
go.yaml.in/yaml/v2 v2.4.3/go.mod h1:zSxWcmIDjOzPXpjlTTbAsKokqkDNAVtZO0WOMiT90s8=
|
go.yaml.in/yaml/v2 v2.4.3/go.mod h1:zSxWcmIDjOzPXpjlTTbAsKokqkDNAVtZO0WOMiT90s8=
|
||||||
|
go.yaml.in/yaml/v2 v2.4.4 h1:tuyd0P+2Ont/d6e2rl3be67goVK4R6deVxCUX5vyPaQ=
|
||||||
|
go.yaml.in/yaml/v2 v2.4.4/go.mod h1:gMZqIpDtDqOfM0uNfy0SkpRhvUryYH0Z6wdMYcacYXQ=
|
||||||
go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc=
|
go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc=
|
||||||
go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
|
go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
|
||||||
golang.org/x/net v0.51.0 h1:94R/GTO7mt3/4wIKpcR5gkGmRLOuE/2hNGeWq/GBIFo=
|
golang.org/x/net v0.51.0 h1:94R/GTO7mt3/4wIKpcR5gkGmRLOuE/2hNGeWq/GBIFo=
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
}:
|
}: let
|
||||||
buildGoModule (finalAttrs: {
|
versionInfo = lib.importJSON ../version.json;
|
||||||
|
in
|
||||||
|
buildGoModule (finalAttrs: {
|
||||||
pname = "watchdog";
|
pname = "watchdog";
|
||||||
version = "0.1.0";
|
version = versionInfo.version;
|
||||||
|
|
||||||
src = let
|
src = let
|
||||||
fs = lib.fileset;
|
fs = lib.fileset;
|
||||||
|
|
@ -15,14 +17,27 @@ buildGoModule (finalAttrs: {
|
||||||
fileset = fs.unions [
|
fileset = fs.unions [
|
||||||
(s + /cmd)
|
(s + /cmd)
|
||||||
(s + /internal)
|
(s + /internal)
|
||||||
|
(s + /web)
|
||||||
|
|
||||||
(s + /go.mod)
|
(s + /go.mod)
|
||||||
(s + /go.sum)
|
(s + /go.sum)
|
||||||
|
|
||||||
|
# Checkphase
|
||||||
|
(s + /test)
|
||||||
|
(s + /testdata)
|
||||||
|
(s + /version.json)
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-jMqPVvMZDm406Gi2g4zNSRJMySLAN7/CR/2NgF+gqtA=";
|
vendorHash = "sha256-qOCa/uj7GS1PYup12Z91zn9w3ovQg4XEHVOLCVP9qZk=";
|
||||||
|
|
||||||
ldflags = ["-s" "-w" "-X main.Version=${finalAttrs.version}"];
|
ldflags = [
|
||||||
|
"-s"
|
||||||
|
"-w"
|
||||||
|
"-X main.Version=${finalAttrs.version}"
|
||||||
|
"-X main.Commit=${versionInfo.commit}"
|
||||||
|
"-X main.BuildDate=${versionInfo.buildDate}"
|
||||||
|
];
|
||||||
|
|
||||||
# Copy web assets
|
# Copy web assets
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
|
@ -33,8 +48,8 @@ buildGoModule (finalAttrs: {
|
||||||
meta = {
|
meta = {
|
||||||
description = "Privacy-preserving web analytics with Prometheus-native metrics";
|
description = "Privacy-preserving web analytics with Prometheus-native metrics";
|
||||||
homepage = "https://github.com/notashelf/watchdog";
|
homepage = "https://github.com/notashelf/watchdog";
|
||||||
license = lib.licenses.gpl3Only;
|
license = lib.licenses.eupl12;
|
||||||
maintainers = with lib.maintainers; [NotAShelf];
|
maintainers = with lib.maintainers; [NotAShelf];
|
||||||
mainProgram = "watchdog";
|
mainProgram = "watchdog";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue