Package Details: git-sendgmail-git r20.e322915-1

Git Clone URL: https://aur.archlinux.org/git-sendgmail-git.git (read-only, click to copy)
Package Base: git-sendgmail-git
Description: Use git send-email with gmail via OAuth2
Upstream URL: https://github.com/google/gmail-oauth2-tools/tree/master/go/sendgmail
Licenses: Apache
Submitter: mikezackles
Maintainer: mikezackles
Last Packager: mikezackles
Votes: 1
Popularity: 0.000000
First Submitted: 2021-03-06 01:59 (UTC)
Last Updated: 2022-06-12 04:47 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

mikezackles commented on 2022-06-12 04:49 (UTC)

Patches applied. Thanks Forty-Bot (and ishitatsuyuki)! Sorry for the delay.

Forty-Bot commented on 2022-06-12 04:24 (UTC)

From 0ca1e34e3fe73a6bf62cc0a4a6ddb426b4f40f56 Mon Sep 17 00:00:00 2001
From: Sean Anderson <seanga2@gmail.com>
Date: Sun, 12 Jun 2022 00:22:42 -0400
Subject: [PATCH 2/2] Use go mod tidy instead of vendor

This is what the wiki recommends [1]. Also put it in prepare (as
recommended).

[1] https://wiki.archlinux.org/title/Go_package_guidelines#Upstream_project_without_go_modules
---
 PKGBUILD | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 8f9b1ad..2969c9e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,6 +15,13 @@ pkgver() {
   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
 }

+prepare() {
+  cd "$subdir"
+  rm -f go.mod
+  go mod init github.com/google/gmail-oauth2-tools/go/sendgmail
+  go mod tidy
+}
+
 build() {
   cd "$subdir"
   export CGO_CPPFLAGS="${CPPFLAGS}"
@@ -23,8 +30,6 @@ build() {
   export CGO_LDFLAGS="${LDFLAGS}"
   export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
   export GO111MODULE=on
-  go mod init github.com/google/gmail-oauth2-tools/go/sendgmail
-  go mod vendor
   go build -o sendgmail .
 }

-- 
2.35.1

Forty-Bot commented on 2022-06-12 04:24 (UTC) (edited on 2022-06-12 04:24 (UTC) by Forty-Bot)

From 8adebae4f0db8c7e2feb0e1132420cbb4a5250ef Mon Sep 17 00:00:00 2001
From: Sean Anderson <seanga2@gmail.com>
Date: Sun, 12 Jun 2022 00:22:04 -0400
Subject: [PATCH 1/2] Fix fetch URL

Github recently disabled access using the git:// url. Use the https
access method instead.
---
 .SRCINFO | 2 +-
 PKGBUILD | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index e908f6b..d923346 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -6,7 +6,7 @@ pkgbase = git-sendgmail-git
    arch = x86_64
    license = APACHE
    makedepends = go
-   source = git-sendgmail-git::git://github.com/google/gmail-oauth2-tools
+   source = git-sendgmail-git::git+https://github.com/google/gmail-oauth2-tools
    sha256sums = SKIP

 pkgname = git-sendgmail-git
diff --git a/PKGBUILD b/PKGBUILD
index e029b03..8f9b1ad 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@ arch=('x86_64')
 url="https://github.com/google/gmail-oauth2-tools/tree/master/go/sendgmail"
 license=('APACHE')
 makedepends=('go')
-source=("$pkgname::git://github.com/google/gmail-oauth2-tools")
+source=("$pkgname::git+https://github.com/google/gmail-oauth2-tools")
 sha256sums=('SKIP')
 subdir="$pkgname/go/sendgmail"

-- 
2.35.1

ishitatsuyuki commented on 2022-05-17 13:25 (UTC)

GitHub deprecated the git protocol, so you need to switch to https protocol for the source URL.

https://github.blog/2021-09-01-improving-git-protocol-security-github/

mikezackles commented on 2022-01-10 01:48 (UTC)

Ah, thanks for pointing that out! Should be fixed now.

thiagowfx commented on 2022-01-05 20:26 (UTC)

Upstream URL is broken (remove go/sendemail suffix)