public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/hugo] epel8: Add fix for new emoji test results.
Date: Fri, 06 Nov 2026 05:42:38 GMT	[thread overview]
Message-ID: <179394375804.1.6286587717897565407.rpms-hugo-4d9d39403140@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/hugo
Branch : epel8
Commit : 4d9d39403140fbd07bfeac1fc09f22d296ea56bd
Author : Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date   : 2019-03-01T18:59:48-05:00
Stats  : +58/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/hugo/c/4d9d39403140fbd07bfeac1fc09f22d296ea56bd?branch=epel8

Log:
Add fix for new emoji test results.

---
diff --git a/0001-Fix-tests-against-latest-emoji-package.patch b/0001-Fix-tests-against-latest-emoji-package.patch
new file mode 100644
index 0000000..2c51e95
--- /dev/null
+++ b/0001-Fix-tests-against-latest-emoji-package.patch
@@ -0,0 +1,54 @@
+From 8f25792a159f13f11e742d255df589f7e8b18d24 Mon Sep 17 00:00:00 2001
+From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
+Date: Fri, 1 Mar 2019 18:47:19 -0500
+Subject: [PATCH] Fix tests against latest emoji package.
+
+Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
+---
+ docs/data/docs.json             | 2 +-
+ tpl/transform/init.go           | 2 +-
+ tpl/transform/transform_test.go | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/docs/data/docs.json b/docs/data/docs.json
+index 6400900a..1c0b94e7 100644
+--- a/docs/data/docs.json
++++ b/docs/data/docs.json
+@@ -3475,7 +3475,7 @@
+           "Examples": [
+             [
+               "{{ \"I :heart: Hugo\" | emojify }}",
+-              "I ❤️ Hugo"
++              "I ❤ Hugo"
+             ]
+           ]
+         },
+diff --git a/tpl/transform/init.go b/tpl/transform/init.go
+index 86951c25..898d3ea9 100644
+--- a/tpl/transform/init.go
++++ b/tpl/transform/init.go
+@@ -32,7 +32,7 @@ func init() {
+ 		ns.AddMethodMapping(ctx.Emojify,
+ 			[]string{"emojify"},
+ 			[][2]string{
+-				{`{{ "I :heart: Hugo" | emojify }}`, `I ❤️ Hugo`},
++				{`{{ "I :heart: Hugo" | emojify }}`, `I ❤ Hugo`},
+ 			},
+ 		)
+ 
+diff --git a/tpl/transform/transform_test.go b/tpl/transform/transform_test.go
+index ab3beb80..ee5da725 100644
+--- a/tpl/transform/transform_test.go
++++ b/tpl/transform/transform_test.go
+@@ -41,7 +41,7 @@ func TestEmojify(t *testing.T) {
+ 		expect interface{}
+ 	}{
+ 		{":notamoji:", template.HTML(":notamoji:")},
+-		{"I :heart: Hugo", template.HTML("I ❤️ Hugo")},
++		{"I :heart: Hugo", template.HTML("I ❤ Hugo")},
+ 		// errors
+ 		{tstNoStringer{}, false},
+ 	} {
+-- 
+2.20.1
+

diff --git a/hugo.spec b/hugo.spec
index 5c9db26..48921e5 100644
--- a/hugo.spec
+++ b/hugo.spec
@@ -12,6 +12,10 @@ URL:            %{gourl}
 Source0:        %{gosource}
 # Call rst2html directly instead of via 'python'.
 Patch0001:      https://github.com/gohugoio/hugo/pull/5285.patch
+%if %{?fedora} > 29
+# Fix build against golang-github-kyokomi-emoji 2.1
+Patch0002:      0001-Fix-tests-against-latest-emoji-package.patch
+%endif
 
 %description
 Hugo is a static HTML and CSS website generator written in Go. It is optimized

                 reply	other threads:[~2026-11-06  5:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179394375804.1.6286587717897565407.rpms-hugo-4d9d39403140@fedoraproject.org \
    --to=quantum.analyst@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox