push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
From 93f4f92b017935a35988e7210036db8020753f9e Mon Sep 17 00:00:00 2001
From: Jake Hillion <jake@hillion.co.uk>
Date: Sun, 21 Feb 2021 21:26:39 +0000
Subject: [PATCH] removed dependency for systemcertpool
---
drone/internal/util.go | 7 +++++--
go.mod | 1 -
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/drone/internal/util.go b/drone/internal/util.go
index 46c8ec6f..25d4def7 100644
--- a/drone/internal/util.go
+++ b/drone/internal/util.go
@@ -2,11 +2,11 @@ package internal
import (
"crypto/tls"
+ "crypto/x509"
"fmt"
"net/http"
"strings"
- "github.com/jackspirou/syscerts"
"github.com/urfave/cli"
"golang.org/x/net/proxy"
"golang.org/x/oauth2"
@@ -35,7 +35,10 @@ func NewClient(c *cli.Context) (drone.Client, error) {
}
// attempt to find system CA certs
- certs := syscerts.SystemRootsPool()
+ certs, err := x509.SystemCertPool()
+ if err != nil {
+ return nil, err
+ }
tlsConfig := &tls.Config{
RootCAs: certs,
InsecureSkipVerify: skip,

View File

@@ -0,0 +1,35 @@
{
lib,
fetchFromGitHub,
buildGoModule,
}:
buildGoModule rec {
version = "1.9.0";
pname = "drone-cli";
revision = "v${version}";
src = fetchFromGitHub {
owner = "harness";
repo = "drone-cli";
rev = revision;
hash = "sha256-XE0myh+PAl8JhoUhEdjdCe52vQo3NuA8/v/x+v5zHK4=";
};
vendorHash = "sha256-22sefx/2iLvVzN+6wJ7kbDFAv10PQNmWbia+HFzmaW8=";
# patch taken from https://patch-diff.githubusercontent.com/raw/harness/drone-cli/pull/179.patch
# but with go.mod changes removed due to conflict
patches = [ ./0001-use-builtin-go-syscerts.patch ];
ldflags = [
"-X main.version=${version}"
];
meta = with lib; {
mainProgram = "drone";
maintainers = with maintainers; [ techknowlogick ];
license = licenses.asl20;
description = "Command line client for the Drone continuous integration server";
};
}