Merge pull request #195845 from techknowlogick/caddy-262

caddy: 2.6.1 -> 2.6.2
This commit is contained in:
Mario Rodas 2022-10-14 02:04:01 -05:00 committed by GitHub
commit 8dcae204bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 23 deletions

View File

@ -7,7 +7,7 @@
, installShellFiles
}:
let
version = "2.6.1";
version = "2.6.2";
dist = fetchFromGitHub {
owner = "caddyserver";
repo = "dist";
@ -23,20 +23,16 @@ buildGoModule {
owner = "caddyserver";
repo = "caddy";
rev = "v${version}";
sha256 = "sha256-Z8MiMhXH1er+uYvmDQiamF/jSxHbTMwjo61qbH0ioEo=";
sha256 = "sha256-Tbf6RB3106OEZGc/Wx7vk+I82Z8/Q3WqnID4f8uZ6z0=";
};
vendorSha256 = "sha256-6UTErIPB/z4RfndPSLKFJDFweLB3ax8WxEDA+3G5asI=";
patches = [
./inject_version.diff
];
vendorSha256 = "sha256-YxGXk3Q1qw6uZxrGc8l2lKExP2GP+nm3eYbHDoEbgdY=";
subPackages = [ "cmd/caddy" ];
ldflags = [
"-s" "-w"
"-X github.com/caddyserver/caddy/v2.ShortVersion=${version}"
"-X github.com/caddyserver/caddy/v2.CustomVersion=${version}"
];
nativeBuildInputs = [ installShellFiles ];

View File

@ -1,15 +0,0 @@
diff --git a/caddy.go b/caddy.go
index 584865bd..082b9b6c 100644
--- a/caddy.go
+++ b/caddy.go
@@ -840,7 +840,10 @@ func InstanceID() (uuid.UUID, error) {
// and https://github.com/golang/go/issues/50603.
//
// This function is experimental and subject to change or removal.
+var ShortVersion = "(devel)"
+
func Version() (simple, full string) {
+ return ShortVersion, ShortVersion
// the currently-recommended way to build Caddy involves
// building it as a dependency so we can extract version
// information from go.mod tooling; once the upstream