De-bootstrap.
This commit is contained in:
parent
f29b07c974
commit
80730254b8
|
@ -0,0 +1,19 @@
|
|||
Description: Skip TestHugoModulesTargetInSubFolder in hugolib/hugo_modules_test.go
|
||||
TestHugoModulesTargetInSubFolder requires network access which is
|
||||
not allowed during Debian package build.
|
||||
Author: Anthony Fok <foka@debian.org>
|
||||
Origin: vendor
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2020-02-27
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
--- a/hugolib/hugo_modules_test.go
|
||||
+++ b/hugolib/hugo_modules_test.go
|
||||
@@ -40,6 +40,7 @@
|
||||
|
||||
// https://github.com/gohugoio/hugo/issues/6730
|
||||
func TestHugoModulesTargetInSubFolder(t *testing.T) {
|
||||
+ t.Skip("Skip test as network is inaccessible during Debian package build")
|
||||
config := `
|
||||
baseURL="https://example.org"
|
||||
workingDir = %q
|
|
@ -1,6 +1,6 @@
|
|||
%bcond_without check
|
||||
# Some tests use a package that uses this.
|
||||
%bcond_without bootstrap
|
||||
%bcond_with bootstrap
|
||||
|
||||
# https://github.com/gohugoio/hugo
|
||||
%global goipath github.com/gohugoio/hugo
|
||||
|
@ -24,10 +24,11 @@ Summary: The world’s fastest framework for building websites
|
|||
License: ASL 2.0 and MIT
|
||||
URL: %{gourl}
|
||||
Source0: %{gosource}
|
||||
# Skip test that uses the network.
|
||||
# Skip tests that uses the network.
|
||||
Patch0001: https://sources.debian.org/data/main/h/hugo/0.58.3-1/debian/patches/0005-skip-modules-TestClient.patch
|
||||
Patch0002: https://sources.debian.org/data/main/h/hugo/0.69.0-1/debian/patches/0006-skip-TestHugoModulesTargetInSubFolder.patch
|
||||
# Fix error message that changed in gocloud.
|
||||
Patch0002: 0001-Update-error-message.patch
|
||||
Patch0003: 0001-Update-error-message.patch
|
||||
|
||||
BuildRequires: golang(github.com/alecthomas/chroma) >= 0.7.1
|
||||
BuildRequires: golang(github.com/alecthomas/chroma/formatters/html)
|
||||
|
@ -134,6 +135,7 @@ BuildRequires: rubygem-asciidoctor
|
|||
|
||||
%patch0001 -p1
|
||||
%patch0002 -p1
|
||||
%patch0003 -p1
|
||||
|
||||
# Replace blackfriday import path to avoid conflict with v2
|
||||
# Depend on unversioned tdewolff/minify until Go modules are supported in Fedora
|
||||
|
|
Loading…
Reference in New Issue