Patch tests for Go 1.15
This commit is contained in:
4
.SRCINFO
4
.SRCINFO
@@ -1,7 +1,7 @@
|
||||
pkgbase = stripe-cli
|
||||
pkgdesc = CLI for Stripe
|
||||
pkgver = 1.5.0
|
||||
pkgrel = 1
|
||||
pkgrel = 2
|
||||
url = https://stripe.com/docs/stripe-cli
|
||||
arch = x86_64
|
||||
license = Apache
|
||||
@@ -9,8 +9,10 @@ pkgbase = stripe-cli
|
||||
depends = glibc
|
||||
source = stripe-cli-1.5.0.tar.gz::https://github.com/stripe/stripe-cli/archive/v1.5.0.tar.gz
|
||||
source = reproducible-image-flags.patch
|
||||
source = 467.patch
|
||||
sha512sums = fd41054a4047dff23d16243ffe4b49b774214d37827490f774c7309d8a487a7018c5aa708ff7f36b5d572a1b3ecd1c7538fdd9a982a403da041c8843e9c70c23
|
||||
sha512sums = 4f5ff8662f5e4bce1ded88a055e652c41dd6492cda5aee74795752abf0e97cc269ec1fef84df2247f62809f0c8cc1a88dd12104e07090cc224bbc5ad46b33f37
|
||||
sha512sums = 74561fa2d5e9a6b421ced78b04d426a8e54c7a254b3bde3c61e9c7b67c2f40c298b83211f0fb17ad576ee8cecc67ea2d3138c7178a711a7feb863907a9e4a256
|
||||
|
||||
pkgname = stripe-cli
|
||||
|
||||
|
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
pkg/
|
||||
src/
|
||||
*.tar
|
||||
*.tar.gz
|
||||
*.tar.xz
|
||||
*.tar.zstd
|
24
467.patch
Normal file
24
467.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
From 908f7ecc8bba4602ba21a8c9376a53d6f2906b51 Mon Sep 17 00:00:00 2001
|
||||
From: Sam Whited <sam@samwhited.com>
|
||||
Date: Tue, 16 Jun 2020 12:27:37 -0400
|
||||
Subject: [PATCH] Fix int/string conversion in error message
|
||||
|
||||
In Go 1.14 this would do the wrong thing silently, but this will cause
|
||||
tests to fail on Go 1.15.
|
||||
---
|
||||
pkg/fixtures/fixtures.go | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/pkg/fixtures/fixtures.go b/pkg/fixtures/fixtures.go
|
||||
index 83bc1072..3c04ad03 100644
|
||||
--- a/pkg/fixtures/fixtures.go
|
||||
+++ b/pkg/fixtures/fixtures.go
|
||||
@@ -95,7 +95,7 @@ func NewFixture(fs afero.Fs, apiKey, stripeAccount, baseURL, file string) (*Fixt
|
||||
}
|
||||
|
||||
if fxt.fixture.Meta.Version > SupportedVersions {
|
||||
- return nil, fmt.Errorf("Fixture version not supported: %s", string(fxt.fixture.Meta.Version))
|
||||
+ return nil, fmt.Errorf("Fixture version not supported: %d", fxt.fixture.Meta.Version)
|
||||
}
|
||||
|
||||
return &fxt, nil
|
9
PKGBUILD
9
PKGBUILD
@@ -1,9 +1,10 @@
|
||||
# Maintainer: ny-a <nyaarch64@gmail..com>
|
||||
# Contributor: Jean Lucas <jean@4ray.co>
|
||||
# Contributor: Sam Whited <sam@samwhited.com>
|
||||
|
||||
pkgname=stripe-cli
|
||||
pkgver=1.5.0
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc='CLI for Stripe'
|
||||
arch=(x86_64)
|
||||
url=https://stripe.com/docs/stripe-cli
|
||||
@@ -13,15 +14,19 @@ makedepends=(go)
|
||||
source=(
|
||||
$pkgname-$pkgver.tar.gz::https://github.com/stripe/stripe-cli/archive/v$pkgver.tar.gz
|
||||
reproducible-image-flags.patch
|
||||
467.patch
|
||||
)
|
||||
sha512sums=('fd41054a4047dff23d16243ffe4b49b774214d37827490f774c7309d8a487a7018c5aa708ff7f36b5d572a1b3ecd1c7538fdd9a982a403da041c8843e9c70c23'
|
||||
'4f5ff8662f5e4bce1ded88a055e652c41dd6492cda5aee74795752abf0e97cc269ec1fef84df2247f62809f0c8cc1a88dd12104e07090cc224bbc5ad46b33f37')
|
||||
'4f5ff8662f5e4bce1ded88a055e652c41dd6492cda5aee74795752abf0e97cc269ec1fef84df2247f62809f0c8cc1a88dd12104e07090cc224bbc5ad46b33f37'
|
||||
'74561fa2d5e9a6b421ced78b04d426a8e54c7a254b3bde3c61e9c7b67c2f40c298b83211f0fb17ad576ee8cecc67ea2d3138c7178a711a7feb863907a9e4a256')
|
||||
|
||||
prepare() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
# Add reproducible image flags
|
||||
patch -Np0 < ../reproducible-image-flags.patch
|
||||
# Patch tests for Go 1.15
|
||||
patch -Np1 < ../467.patch
|
||||
|
||||
make setup
|
||||
}
|
||||
|
Reference in New Issue
Block a user