traefik: 2.10.7 -> 3.0.0
This commit is contained in:
parent
9e93dea6ec
commit
f4d45825d7
1 changed files with 4 additions and 4 deletions
|
@ -2,23 +2,23 @@
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "traefik";
|
pname = "traefik";
|
||||||
version = "2.10.7";
|
version = "3.0.0";
|
||||||
|
|
||||||
# Archive with static assets for webui
|
# Archive with static assets for webui
|
||||||
src = fetchzip {
|
src = fetchzip {
|
||||||
url = "https://github.com/traefik/traefik/releases/download/v${version}/traefik-v${version}.src.tar.gz";
|
url = "https://github.com/traefik/traefik/releases/download/v${version}/traefik-v${version}.src.tar.gz";
|
||||||
hash = "sha256-I+jmMtqWadWfT7nk2D9im6C2BGpPLts/7cdJ3NHsIks=";
|
hash = "sha256-OX9VJpO+SWIsocaSu+BhF3HT+zrhhgxb5NBvaRTadIY=";
|
||||||
stripRoot = false;
|
stripRoot = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-3SyD1mC+tc8cf5MGcw891W5VbX+b7d0cIJQfwNq2NU8=";
|
vendorHash = "sha256-GRVSZB4GojXv2xAdx8Y5RSuhF/3paRhhq7HOWLRmmHE=";
|
||||||
|
|
||||||
subPackages = [ "cmd/traefik" ];
|
subPackages = [ "cmd/traefik" ];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
GOOS= GOARCH= CGO_ENABLED=0 go generate
|
GOOS= GOARCH= CGO_ENABLED=0 go generate
|
||||||
|
|
||||||
CODENAME=$(awk -F "=" '/CODENAME=/ { print $2}' script/binary)
|
CODENAME=$(grep -Po "CODENAME \?=\s\K.+$" Makefile)
|
||||||
|
|
||||||
buildFlagsArray+=("-ldflags= -s -w \
|
buildFlagsArray+=("-ldflags= -s -w \
|
||||||
-X github.com/traefik/traefik/v${lib.versions.major version}/pkg/version.Version=${version} \
|
-X github.com/traefik/traefik/v${lib.versions.major version}/pkg/version.Version=${version} \
|
||||||
|
|
Loading…
Reference in a new issue