diff options
author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2022-05-10 16:07:26 -0700 |
---|---|---|
committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2022-05-10 16:07:26 -0700 |
commit | 2bdd73c53e70e88981139127b912767aea2cca20 (patch) | |
tree | e031785f7908db6170418af9d7a2c8e7b8f44ece | |
parent | 3b5bc8f670db159e0eddf458697a1598d63e586e (diff) | |
download | specs-2bdd73c53e70e88981139127b912767aea2cca20.tar.gz specs-2bdd73c53e70e88981139127b912767aea2cca20.tar.xz specs-2bdd73c53e70e88981139127b912767aea2cca20.zip |
Fix test on 32-bit platforms
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
-rw-r--r-- | meta/ent-0.10.0-fix_native_test_int_overflow.patch | 12 | ||||
-rw-r--r-- | meta/golang-entgo-ent.spec | 4 |
2 files changed, 15 insertions, 1 deletions
diff --git a/meta/ent-0.10.0-fix_native_test_int_overflow.patch b/meta/ent-0.10.0-fix_native_test_int_overflow.patch new file mode 100644 index 0000000..604988b --- /dev/null +++ b/meta/ent-0.10.0-fix_native_test_int_overflow.patch @@ -0,0 +1,12 @@ +diff '--color=auto' -ruN ent-0.10.0/dialect/gremlin/encoding/graphson/native_test.go ent-0.10.0-fix_native_test_int_overflow/dialect/gremlin/encoding/graphson/native_test.go +--- ent-0.10.0/dialect/gremlin/encoding/graphson/native_test.go 2022-01-20 15:01:20.000000000 -0800 ++++ ent-0.10.0-fix_native_test_int_overflow/dialect/gremlin/encoding/graphson/native_test.go 2022-05-10 15:56:35.191928982 -0700 +@@ -93,7 +93,7 @@ + }`, + }, + { +- in: uint(9876543210), ++ in: uint64(9876543210), + want: `{ + "@type" :"gx:BigInteger", + "@value": 9876543210 diff --git a/meta/golang-entgo-ent.spec b/meta/golang-entgo-ent.spec index de5d076..e586703 100644 --- a/meta/golang-entgo-ent.spec +++ b/meta/golang-entgo-ent.spec @@ -26,7 +26,8 @@ Summary: An entity framework for Go # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} -Source0: %{gosource} +Source: %{gosource} +Patch0: ent-0.10.0-fix_native_test_int_overflow.patch BuildRequires: golang(github.com/go-openapi/inflect) BuildRequires: golang(github.com/google/uuid) @@ -100,6 +101,7 @@ BuildRequires: golang(ariga.io/atlas/sql/sqlite) %prep %goprep +%patch0 -p1 %generate_buildrequires # %%go_generate_buildrequires |