parent
c2e4cab4b7
commit
c55913fdab
|
@ -1,9 +0,0 @@
|
|||
/build-86f50f009ac7c74875e7270e3188165916a999bd.tar.gz
|
||||
/build-0da8e46d893e07a63fe0a788d600193e2cca5509.tar.gz
|
||||
/build-0d6a6460c5f4e4635dc491e7226fc7cc133f9c34.tar.gz
|
||||
/build-57258c564e6f790b19d257469cced6b6ab47f38c.tar.gz
|
||||
/build-269e03abe74bc43b688741a36205f5ca91dffce6.tar.gz
|
||||
/build-9ed24406dee1f593f40f852f27f1092bd20d5852.tar.gz
|
||||
/build-1dcd8460d70ed0dddca5477a5079dd7ecfe8a226.tar.gz
|
||||
/build-301a72cb1ab6c95414686a16f34ebe2bef25b689.tar.gz
|
||||
/build-0a4bf693f6139da99647cdcccd3fd0b8a6fbfd70.tar.gz
|
|
@ -1,86 +0,0 @@
|
|||
From 35f6da80585f9492cd2325c109a472429d8f984c Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= <zebob.m@gmail.com>
|
||||
Date: Sun, 9 Aug 2020 20:01:41 +0200
|
||||
Subject: [PATCH] Fix githubdirect.issues.listcomments parameters
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
to match newer github.com/google/go-github
|
||||
|
||||
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
|
||||
---
|
||||
cmd/gerritbot/gerritbot.go | 2 +-
|
||||
cmd/gopherbot/gopherbot.go | 2 +-
|
||||
cmd/gopherstats/gopherstats.go | 6 +++++-
|
||||
maintner/github.go | 6 +++---
|
||||
4 files changed, 10 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/cmd/gerritbot/gerritbot.go b/cmd/gerritbot/gerritbot.go
|
||||
index b391828..ee37ee7 100644
|
||||
--- a/cmd/gerritbot/gerritbot.go
|
||||
+++ b/cmd/gerritbot/gerritbot.go
|
||||
@@ -899,7 +899,7 @@ func (b *bot) postGitHubMessageNoDup(ctx
|
||||
// See if there is a dup comment from when GerritBot last got
|
||||
// its data from maintner.
|
||||
ics, resp, err := b.githubClient.Issues.ListComments(ctx, org, repo, int(issueNum), &github.IssueListCommentsOptions{
|
||||
- Since: since,
|
||||
+ Since: &since,
|
||||
ListOptions: github.ListOptions{PerPage: 1000},
|
||||
})
|
||||
if err != nil {
|
||||
diff --git a/cmd/gopherbot/gopherbot.go b/cmd/gopherbot/gopherbot.go
|
||||
index ab9e30f..cdf9646 100644
|
||||
--- a/cmd/gopherbot/gopherbot.go
|
||||
+++ b/cmd/gopherbot/gopherbot.go
|
||||
@@ -509,7 +509,7 @@ func (b *gopherbot) addGitHubComment(ctx
|
||||
// See if there is a dup comment from when gopherbot last got
|
||||
// its data from maintner.
|
||||
ics, resp, err := b.ghc.Issues.ListComments(ctx, repo.ID().Owner, repo.ID().Repo, int(issueNum), &github.IssueListCommentsOptions{
|
||||
- Since: since,
|
||||
+ Since: &since,
|
||||
ListOptions: github.ListOptions{PerPage: 1000},
|
||||
})
|
||||
if err != nil {
|
||||
diff --git a/cmd/gopherstats/gopherstats.go b/cmd/gopherstats/gopherstats.go
|
||||
index a791056..80c1561 100644
|
||||
--- a/cmd/gopherstats/gopherstats.go
|
||||
+++ b/cmd/gopherstats/gopherstats.go
|
||||
@@ -343,6 +343,10 @@ func (sc *statsClient) githubGroups() {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
+ org, _, err := ghc.Organizations.Get(ctx, "golang")
|
||||
+ if err != nil {
|
||||
+ log.Fatal(err)
|
||||
+ }
|
||||
|
||||
var teams = map[string]*personSet{}
|
||||
for _, t := range teamList {
|
||||
@@ -355,7 +359,7 @@ func (sc *statsClient) githubGroups() {
|
||||
|
||||
ps := new(personSet)
|
||||
teams[teamName] = ps
|
||||
- users, _, err := ghc.Teams.ListTeamMembers(ctx, t.GetID(), &github.TeamListTeamMembersOptions{
|
||||
+ users, _, err := ghc.Teams.ListTeamMembersByID(ctx, org.GetID(), t.GetID(), &github.TeamListTeamMembersOptions{
|
||||
ListOptions: github.ListOptions{PerPage: 1000},
|
||||
})
|
||||
if err != nil {
|
||||
diff --git a/maintner/github.go b/maintner/github.go
|
||||
index e2bdb02..3da87e5 100644
|
||||
--- a/maintner/github.go
|
||||
+++ b/maintner/github.go
|
||||
@@ -1926,9 +1926,7 @@ func (p *githubRepoPoller) syncCommentsO
|
||||
morePages := true // at least try the first. might be empty.
|
||||
for morePages {
|
||||
ics, res, err := p.githubDirect.Issues.ListComments(ctx, owner, repo, int(issueNum), &github.IssueListCommentsOptions{
|
||||
- Since: since,
|
||||
- Direction: "asc",
|
||||
- Sort: "updated",
|
||||
+ Since: &since,
|
||||
ListOptions: github.ListOptions{PerPage: 100},
|
||||
})
|
||||
if err != nil {
|
||||
--
|
||||
2.26.2
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
Retired: Fails to install
|
||||
|
||||
See https://pagure.io/releng/issue/11052
|
|
@ -1,218 +0,0 @@
|
|||
# Generated by go2rpm
|
||||
%bcond_without check
|
||||
|
||||
# https://github.com/golang/build
|
||||
%global goipath golang.org/x/build
|
||||
%global forgeurl https://github.com/golang/build
|
||||
%global commit 0a4bf693f6139da99647cdcccd3fd0b8a6fbfd70
|
||||
|
||||
%gometa
|
||||
|
||||
%global common_description %{expand:
|
||||
Packages and tools that support Go's build system and the development
|
||||
of the Go programming language.}
|
||||
|
||||
%global golicenses LICENSE PATENTS
|
||||
%global godocs doc AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md
|
||||
|
||||
Name: %{goname}
|
||||
Version: 0
|
||||
Release: 0.24%{?dist}
|
||||
Summary: Packages and tools that support Go's build system
|
||||
|
||||
# Upstream license specification: BSD-3-Clause
|
||||
License: BSD
|
||||
URL: %{gourl}
|
||||
Source0: %{gosource}
|
||||
# Fix githubdirect.issues.listcomments parameters
|
||||
# to match newer github.com/google/go-github
|
||||
Patch0: 0001-Fix-githubdirect.issues.listcomments-parameters.patch
|
||||
|
||||
BuildRequires: golang(cloud.google.com/go/bigquery)
|
||||
BuildRequires: golang(cloud.google.com/go/compute/metadata)
|
||||
BuildRequires: golang(cloud.google.com/go/datastore)
|
||||
BuildRequires: golang(cloud.google.com/go/errorreporting)
|
||||
BuildRequires: golang(cloud.google.com/go/monitoring/apiv3)
|
||||
BuildRequires: golang(cloud.google.com/go/pubsub)
|
||||
BuildRequires: golang(cloud.google.com/go/secretmanager/apiv1)
|
||||
BuildRequires: golang(cloud.google.com/go/storage)
|
||||
BuildRequires: golang(github.com/aws/aws-sdk-go/aws)
|
||||
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/credentials)
|
||||
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/ec2metadata)
|
||||
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/request)
|
||||
BuildRequires: golang(github.com/aws/aws-sdk-go/aws/session)
|
||||
BuildRequires: golang(github.com/aws/aws-sdk-go/service/ec2)
|
||||
BuildRequires: golang(github.com/aws/aws-sdk-go/service/servicequotas)
|
||||
BuildRequires: golang(github.com/bradfitz/go-smtpd/smtpd)
|
||||
BuildRequires: golang(github.com/coreos/go-systemd/activation)
|
||||
BuildRequires: golang(github.com/coreos/go-systemd/daemon)
|
||||
BuildRequires: golang(github.com/gliderlabs/ssh)
|
||||
BuildRequires: golang(github.com/golang/protobuf/proto)
|
||||
BuildRequires: golang(github.com/golang/protobuf/ptypes)
|
||||
BuildRequires: golang(github.com/golang/protobuf/ptypes/timestamp)
|
||||
BuildRequires: golang(github.com/google/go-github/github)
|
||||
BuildRequires: golang(github.com/google/go-github/v35/github)
|
||||
BuildRequires: golang(github.com/google/uuid)
|
||||
BuildRequires: golang(github.com/googleapis/gax-go/v2)
|
||||
BuildRequires: golang(github.com/gregjones/httpcache)
|
||||
BuildRequires: golang(github.com/jellevandenhooff/dkim)
|
||||
BuildRequires: golang(github.com/kr/pty)
|
||||
BuildRequires: golang(github.com/NYTimes/gziphandler)
|
||||
BuildRequires: golang(github.com/sendgrid/sendgrid-go)
|
||||
BuildRequires: golang(github.com/sendgrid/sendgrid-go/helpers/mail)
|
||||
BuildRequires: golang(go4.org/strutil)
|
||||
BuildRequires: golang(go4.org/syncutil)
|
||||
BuildRequires: golang(go4.org/types)
|
||||
BuildRequires: golang(golang.org/x/crypto/acme)
|
||||
BuildRequires: golang(golang.org/x/crypto/acme/autocert)
|
||||
BuildRequires: golang(golang.org/x/crypto/ssh)
|
||||
BuildRequires: golang(golang.org/x/net/context/ctxhttp)
|
||||
BuildRequires: golang(golang.org/x/net/http2)
|
||||
BuildRequires: golang(golang.org/x/oauth2)
|
||||
BuildRequires: golang(golang.org/x/oauth2/google)
|
||||
BuildRequires: golang(golang.org/x/perf/storage)
|
||||
BuildRequires: golang(golang.org/x/sync/errgroup)
|
||||
BuildRequires: golang(golang.org/x/text/collate)
|
||||
BuildRequires: golang(golang.org/x/text/language)
|
||||
BuildRequires: golang(golang.org/x/time/rate)
|
||||
BuildRequires: golang(google.golang.org/api/compute/v1)
|
||||
BuildRequires: golang(google.golang.org/api/container/v1)
|
||||
BuildRequires: golang(google.golang.org/api/deploymentmanager/v2)
|
||||
BuildRequires: golang(google.golang.org/api/googleapi)
|
||||
BuildRequires: golang(google.golang.org/api/iterator)
|
||||
BuildRequires: golang(google.golang.org/api/oauth2/v2)
|
||||
BuildRequires: golang(google.golang.org/api/option)
|
||||
BuildRequires: golang(google.golang.org/genproto/googleapis/api/label)
|
||||
BuildRequires: golang(google.golang.org/genproto/googleapis/api/metric)
|
||||
BuildRequires: golang(google.golang.org/genproto/googleapis/cloud/secretmanager/v1)
|
||||
BuildRequires: golang(google.golang.org/genproto/googleapis/monitoring/v3)
|
||||
BuildRequires: golang(google.golang.org/grpc)
|
||||
BuildRequires: golang(google.golang.org/grpc/codes)
|
||||
BuildRequires: golang(google.golang.org/grpc/credentials)
|
||||
BuildRequires: golang(google.golang.org/grpc/metadata)
|
||||
BuildRequires: golang(google.golang.org/grpc/status)
|
||||
BuildRequires: golang(gopkg.in/inf.v0)
|
||||
BuildRequires: golang(grpc.go4.org)
|
||||
BuildRequires: golang(grpc.go4.org/codes)
|
||||
|
||||
%if %{with check}
|
||||
# Tests
|
||||
BuildRequires: golang(cloud.google.com/go/pubsub/pstest)
|
||||
BuildRequires: golang(github.com/davecgh/go-spew/spew)
|
||||
BuildRequires: golang(github.com/google/go-cmp/cmp)
|
||||
BuildRequires: golang(github.com/google/go-cmp/cmp/cmpopts)
|
||||
%endif
|
||||
|
||||
%description
|
||||
%{common_description}
|
||||
|
||||
%gopkg
|
||||
|
||||
%prep
|
||||
%goprep
|
||||
%patch0 -p1
|
||||
sed -i 's|github.com/google/go-github/v28|github.com/google/go-github/v35|' $(find . -iname "*.go" -type f)
|
||||
# Remove maintserve because it pulls extra dependencies (shurcooL)
|
||||
rm -rf maintner/cmd/maintserve
|
||||
|
||||
%build
|
||||
for cmd in cmd/* ; do
|
||||
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
|
||||
done
|
||||
|
||||
%install
|
||||
%gopkginstall
|
||||
install -m 0755 -vd %{buildroot}%{_bindir}
|
||||
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%gocheck -d cloudfns/sendwikidiff \
|
||||
-d cmd/coordinator \
|
||||
-d maintner/godata \
|
||||
-t maintner/maintnerd
|
||||
%endif
|
||||
|
||||
%files
|
||||
%license LICENSE PATENTS
|
||||
%doc doc AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md
|
||||
%{_bindir}/*
|
||||
|
||||
%gopkgfiles
|
||||
|
||||
%changelog
|
||||
* Wed Aug 10 2022 Maxwell G <gotmax@e.email> - 0-0.24
|
||||
- Rebuild to fix FTBFS
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.23
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Tue Jul 19 2022 Maxwell G <gotmax@e.email> - 0-0.22
|
||||
- Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in
|
||||
golang
|
||||
|
||||
* Sat Jun 18 2022 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.21
|
||||
- Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191,
|
||||
CVE-2022-29526, CVE-2022-30629
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.20
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.19
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Tue Jun 8 19:12:14 CEST 2021 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.18
|
||||
- Fix github.com/google/go-github import path
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Dec 29 16:00:09 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.16.20201229git0a4bf69
|
||||
- Bump to commit 0a4bf693f6139da99647cdcccd3fd0b8a6fbfd70
|
||||
|
||||
* Fri Sep 04 22:23:54 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.15.20200904git301a72c
|
||||
- Bump to commit 301a72cb1ab6c95414686a16f34ebe2bef25b689
|
||||
|
||||
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.14
|
||||
- Second attempt - Rebuilt for
|
||||
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Thu May 30 18:50:31 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.10.20190530git9ed2440
|
||||
- Bump to commit 9ed24406dee1f593f40f852f27f1092bd20d5852
|
||||
|
||||
* Sun Mar 10 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.9.20190226git269e03a
|
||||
- Remove maintner/cmd/maintserve
|
||||
|
||||
* Sat Mar 09 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.8.20190226git269e03a
|
||||
- Unbootstrap
|
||||
|
||||
* Tue Feb 26 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.7.20190226git269e03a
|
||||
- Bump to commit 269e03abe74bc43b688741a36205f5ca91dffce6
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.6.git57258c5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Oct 26 2018 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.5.20181026git57258c5
|
||||
- Bump to commit 57258c564e6f790b19d257469cced6b6ab47f38c
|
||||
|
||||
* Thu Jul 19 2018 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.4.20180719git0d6a646
|
||||
- Bump to commit 0d6a6460c5f4e4635dc491e7226fc7cc133f9c34
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.3.git0da8e46
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Wed Mar 21 2018 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.2-20180509git0da8e46
|
||||
- Unboostrap
|
||||
|
||||
* Wed Mar 21 2018 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.1-20180421git86f50f0
|
||||
- First package for Fedora
|
||||
|
Loading…
Reference in New Issue