Unverified Commit bc279bba authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

Merge pull request #303488 from teutat3s/sensu-go-6.11.0

sensu-go-backend: 6.9.2 -> 6.11.0
parents 920f7045 66904f8e
Loading
Loading
Loading
Loading
+13 −6
Original line number Diff line number Diff line
{ buildGoModule, fetchFromGitHub, lib }:
{ buildGo121Module, fetchFromGitHub, lib }:

let
  generic = { subPackages, pname, postInstall ? "", mainProgram }:
    buildGoModule rec {
    buildGo121Module rec {
      inherit pname;
      version = "6.9.2";
      shortRev = "3a1ac58"; # for internal version info
      version = "6.11.0";
      shortRev = "9587df6"; # for internal version info

      src = fetchFromGitHub {
        owner = "sensu";
        repo = "sensu-go";
        rev = "v${version}";
        sha256 = "sha256-Xd15fkoSmQXbkyEMsBvc8ewLvn+wlsZoclfDjarp1FQ=";
        sha256 = "sha256-Vcay8vUYLjV65g526btQX0+m5n/cRocIKx7C2LuWeP4=";
      };

      inherit subPackages postInstall;

      vendorHash = "sha256-zrwTdMlDfG1RudOfV52qOP9NMU3/XYb5TND6xyglJ0I=";
      vendorHash = "sha256-ADqU/ZJiyZ5hAkqFXExmA8fSZxzhx42QptYu3TIlgBc=";

      patches = [
        # Without this, we get error messages like:
        # vendor/golang.org/x/sys/unix/mremap.go:41:10: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
        # The patch was generated by changing "go 1.16" to "go 1.21" and executing `go mod tidy`.
        ./fix-go-version-error.patch
      ];

      doCheck = false;

+1492 −0

File added.

Preview size limit exceeded, changes collapsed.