Debian Codegraph @

debian/patches/0002-skip-tests-that-access-the-internet.patch

raw
1 From: "Dr. Tobias Quathamer" <[email protected]>
2 Date: Wed, 24 Sep 2025 22:18:30 +0200
3 Subject: Skip tests that access the Internet during Debian build
4
5 But let the test run during autopkgtest. Examples include:
6 - TestTransformPostCSS runs "npm install" which accesses the Internet
7 - TestHugoModulesVariants pulls in github.com/gohugoio/hugoTestModule2
8 - TestEmbeddedShortcodes where {{< tweet >}} shortcode accesses the Internet
9
10 Origin: vendor
11 Forwarded: not-needed
12 Last-Update: 2021-01-27, 2022-02-23, 2022-06-07, 2022-06-08, 2023-03-09, 2023-07-06, 2023-10-10, 2024-02-23, 2024-07-14, 2024-08-18
13 ---
14 cache/filecache/filecache_pruner_test.go | 1 +
15 common/hexec/exec_integration_test.go | 1 +
16 hugolib/gitinfo_github_test.go | 6 +
17 hugolib/hugo_modules_test.go | 1 +
18 hugolib/rebuild_test.go | 4 +
19 internal/js/esbuild/batch_integration_test.go | 1 +
20 modules/client_test.go | 3 +
21 modules/modules_integration_test.go | 1 +
22 .../create/create_integration_test.go | 6 +
23 .../babel/babel_integration_test.go | 5 +
24 .../cssjs/postcss_integration_test.go | 22 +++
25 .../cssjs/tailwindcss_integration_test.go | 24 +++
26 .../js/js_integration_test.go | 6 +
27 testscripts/commands/hugo__static_issue14507.txt | 27 ---
28 testscripts/commands/mod.txt | 45 -----
29 testscripts/commands/mod__disable.txt | 15 --
30 testscripts/commands/mod__hugodirectsum.txt | 15 --
31 testscripts/commands/mod__hugodirectsum_tamper.txt | 16 --
32 testscripts/commands/mod__tamper_gosum.txt | 22 ---
33 testscripts/commands/mod_get.txt | 15 --
34 testscripts/commands/mod_get_u.txt | 22 ---
35 testscripts/commands/mod_npm.txt | 214 ---------------------
36 testscripts/commands/mod_npm__moduleorder.txt | 67 -------
37 testscripts/commands/mod_npm_withexisting.txt | 61 ------
38 testscripts/commands/mod_vendor.txt | 29 ---
39 testscripts/commands/mod_vendor__versions.txt | 100 ----------
40 tpl/css/build_integration_test.go | 1 +
41 tpl/tplimpl/shortcodes_integration_test.go | 2 +
42 28 files changed, 84 insertions(+), 648 deletions(-)
43 delete mode 100644 testscripts/commands/hugo__static_issue14507.txt
44 delete mode 100644 testscripts/commands/mod.txt
45 delete mode 100644 testscripts/commands/mod__disable.txt
46 delete mode 100644 testscripts/commands/mod__hugodirectsum.txt
47 delete mode 100644 testscripts/commands/mod__hugodirectsum_tamper.txt
48 delete mode 100644 testscripts/commands/mod__tamper_gosum.txt
49 delete mode 100644 testscripts/commands/mod_get.txt
50 delete mode 100644 testscripts/commands/mod_get_u.txt
51 delete mode 100644 testscripts/commands/mod_npm.txt
52 delete mode 100644 testscripts/commands/mod_npm__moduleorder.txt
53 delete mode 100644 testscripts/commands/mod_npm_withexisting.txt
54 delete mode 100644 testscripts/commands/mod_vendor.txt
55 delete mode 100644 testscripts/commands/mod_vendor__versions.txt
56
57 diff --git a/cache/filecache/filecache_pruner_test.go b/cache/filecache/filecache_pruner_test.go
58 index dc01e41..1e7948e 100644
59 --- a/cache/filecache/filecache_pruner_test.go
60 +++ b/cache/filecache/filecache_pruner_test.go
61 @@ -87,6 +87,7 @@ func TestPruneCacheEntryWithOtherCaseCaseSensitiveFs(t *testing.T) {
62 }
63
64 func TestPrune(t *testing.T) {
65 + t.Skip("Skip test until go.mod is supported by dh-golang")
66 t.Parallel()
67
68 synctest.Test(t, func(t *testing.T) {
69 diff --git a/common/hexec/exec_integration_test.go b/common/hexec/exec_integration_test.go
70 index 3c820b5..14d6dc7 100644
71 --- a/common/hexec/exec_integration_test.go
72 +++ b/common/hexec/exec_integration_test.go
73 @@ -21,6 +21,7 @@ import (
74 )
75
76 func TestNPMGlobalInstalls(t *testing.T) {
77 + t.Skip("This tests needs internet access")
78 if !htesting.IsRealCI() {
79 t.Skip("We only ever want to run this in CI.")
80 }
81 diff --git a/hugolib/gitinfo_github_test.go b/hugolib/gitinfo_github_test.go
82 index c8a1c3c..956ec7d 100644
83 --- a/hugolib/gitinfo_github_test.go
84 +++ b/hugolib/gitinfo_github_test.go
85 @@ -15,9 +15,11 @@ package hugolib
86
87 import (
88 "testing"
89 + "os"
90 )
91
92 func TestGitInfoFromGitModuleWithVersionQuery(t *testing.T) {
93 + t.Skip("This tests needs internet access")
94 t.Parallel()
95
96 files := `
97 @@ -65,6 +67,7 @@ List: {{ .Title }}
98 }
99
100 func TestGitInfoFromGitModuleWithGoMod(t *testing.T) {
101 + t.Skip("This tests needs internet access")
102 t.Parallel()
103
104 files := `
105 @@ -98,6 +101,9 @@ module hugotest
106
107 // See issue 14942.
108 func TestGitInfoFromGitModuleWithGoModInSubdir(t *testing.T) {
109 + if os.Getenv("AUTOPKGTEST_TMP") == "" {
110 + t.Skip("Skip test as network is inaccessible during Debian package build")
111 + }
112 t.Parallel()
113
114 files := `
115 diff --git a/hugolib/hugo_modules_test.go b/hugolib/hugo_modules_test.go
116 index cc05aa1..7e5faa7 100644
117 --- a/hugolib/hugo_modules_test.go
118 +++ b/hugolib/hugo_modules_test.go
119 @@ -271,6 +271,7 @@ Home: {{ .Title }}|{{ .Content }}|
120
121 // https://github.com/gohugoio/hugo/issues/14543
122 func TestModulePrivateRepo(t *testing.T) {
123 + t.Skip("This tests needs internet access")
124 t.Parallel()
125
126 files := `
127 diff --git a/hugolib/rebuild_test.go b/hugolib/rebuild_test.go
128 index b6d716c..6d20e2f 100644
129 --- a/hugolib/rebuild_test.go
130 +++ b/hugolib/rebuild_test.go
131 @@ -2,6 +2,7 @@ package hugolib
132
133 import (
134 "fmt"
135 + "os"
136 "path/filepath"
137 "strings"
138 "testing"
139 @@ -1539,6 +1540,9 @@ foo();
140 }
141
142 func TestRebuildVariationsAssetsPostCSSImport(t *testing.T) {
143 + if os.Getenv("AUTOPKGTEST_TMP") == "" {
144 + t.Skip("Skip test as network is inaccessible during Debian package build")
145 + }
146 if !htesting.IsCI() {
147 t.Skip("skip CI only")
148 }
149 diff --git a/internal/js/esbuild/batch_integration_test.go b/internal/js/esbuild/batch_integration_test.go
150 index ca85cb4..b2443df 100644
151 --- a/internal/js/esbuild/batch_integration_test.go
152 +++ b/internal/js/esbuild/batch_integration_test.go
153 @@ -448,6 +448,7 @@ func TestBatchErrorScriptResourceInBundleSyntaxError(t *testing.T) {
154 }
155
156 func TestBatch(t *testing.T) {
157 + t.Skip("This tests needs npm with internet access")
158 htesting.SkipSlowTestUnlessCI(t)
159 files := `
160 -- hugo.toml --
161 diff --git a/modules/client_test.go b/modules/client_test.go
162 index 188646c..876ba51 100644
163 --- a/modules/client_test.go
164 +++ b/modules/client_test.go
165 @@ -34,6 +34,9 @@ import (
166 )
167
168 func TestClient(t *testing.T) {
169 + if os.Getenv("AUTOPKGTEST_TMP") == "" {
170 + t.Skip("skip test as network access is not allowed during Debian package build")
171 + }
172 htesting.SkipSlowTestUnlessCI(t)
173 modName := "hugo-modules-basic-test"
174 modPath := "github.com/gohugoio/tests/" + modName
175 diff --git a/modules/modules_integration_test.go b/modules/modules_integration_test.go
176 index d3cfc44..a9f6a7b 100644
177 --- a/modules/modules_integration_test.go
178 +++ b/modules/modules_integration_test.go
179 @@ -20,6 +20,7 @@ import (
180 )
181
182 func TestModuleImportWithVersion(t *testing.T) {
183 + t.Skip("This tests needs internet access")
184 t.Parallel()
185
186 files := `
187 diff --git a/resources/resource_factories/create/create_integration_test.go b/resources/resource_factories/create/create_integration_test.go
188 index 783161b..92113d6 100644
189 --- a/resources/resource_factories/create/create_integration_test.go
190 +++ b/resources/resource_factories/create/create_integration_test.go
191 @@ -18,6 +18,7 @@ import (
192 "math/rand"
193 "net/http"
194 "net/http/httptest"
195 + "os"
196 "strings"
197 "sync"
198 "testing"
199 @@ -29,6 +30,9 @@ import (
200 )
201
202 func TestGetRemoteHead(t *testing.T) {
203 + if os.Getenv("AUTOPKGTEST_TMP") == "" {
204 + t.Skip("Skip test as network is inaccessible during Debian package build")
205 + }
206 files := `
207 -- hugo.toml --
208 [security]
209 @@ -58,6 +62,7 @@ func TestGetRemoteHead(t *testing.T) {
210 }
211
212 func TestGetRemoteResponseHeaders(t *testing.T) {
213 + t.Skip("This tests needs internet access")
214 files := `
215 -- hugo.toml --
216 [security]
217 @@ -86,6 +91,7 @@ func TestGetRemoteResponseHeaders(t *testing.T) {
218 }
219
220 func TestGetRemoteRetry(t *testing.T) {
221 + t.Skip("This tests needs internet access")
222 t.Parallel()
223 htesting.SkipSlowTestUnlessCI(t)
224
225 diff --git a/resources/resource_transformers/babel/babel_integration_test.go b/resources/resource_transformers/babel/babel_integration_test.go
226 index a95185f..37037bc 100644
227 --- a/resources/resource_transformers/babel/babel_integration_test.go
228 +++ b/resources/resource_transformers/babel/babel_integration_test.go
229 @@ -26,6 +26,9 @@ import (
230 )
231
232 func TestTransformBabel(t *testing.T) {
233 + if os.Getenv("AUTOPKGTEST_TMP") == "" {
234 + t.Skip("Skip test as network is inaccessible during Debian package build")
235 + }
236 if !htesting.IsCI() {
237 t.Skip("Skip long running test when running locally")
238 }
239 @@ -92,6 +95,8 @@ Transpiled3: {{ $transpiled.Permalink }}
240 // See Issue 15043.
241 // See Issue 15040.
242 func TestTransformBabelConfigResolution(t *testing.T) {
243 + t.Skip("This tests needs internet access")
244 +
245 if !htesting.IsCI() {
246 t.Skip("Skip long running test when running locally")
247 }
248 diff --git a/resources/resource_transformers/cssjs/postcss_integration_test.go b/resources/resource_transformers/cssjs/postcss_integration_test.go
249 index 6ef6726..f5fe289 100644
250 --- a/resources/resource_transformers/cssjs/postcss_integration_test.go
251 +++ b/resources/resource_transformers/cssjs/postcss_integration_test.go
252 @@ -100,6 +100,9 @@ module.exports = {
253 `
254
255 func TestTransformPostCSS(t *testing.T) {
256 + if os.Getenv("AUTOPKGTEST_TMP") == "" {
257 + t.Skip("Skip test as network is inaccessible during Debian package build")
258 + }
259 if !htesting.IsCI() {
260 t.Skip("Skip long running test when running locally")
261 }
262 @@ -138,6 +141,9 @@ Styles Content: Len: 770917|
263
264 // 9880
265 func TestTransformPostCSSError(t *testing.T) {
266 + if os.Getenv("AUTOPKGTEST_TMP") == "" {
267 + t.Skip("Skip test as network is inaccessible during Debian package build")
268 + }
269 if !htesting.IsCI() {
270 t.Skip("Skip long running test when running locally")
271 }
272 @@ -158,6 +164,9 @@ func TestTransformPostCSSError(t *testing.T) {
273
274 // #9895
275 func TestTransformPostCSSImportError(t *testing.T) {
276 + if os.Getenv("AUTOPKGTEST_TMP") == "" {
277 + t.Skip("Skip test as network is inaccessible during Debian package build")
278 + }
279 if !htesting.IsCI() {
280 t.Skip("Skip long running test when running locally")
281 }
282 @@ -172,6 +181,9 @@ func TestTransformPostCSSImportError(t *testing.T) {
283 }
284
285 func TestTransformPostCSSImporSkipInlineImportsNotFound(t *testing.T) {
286 + if os.Getenv("AUTOPKGTEST_TMP") == "" {
287 + t.Skip("Skip test as network is inaccessible during Debian package build")
288 + }
289 if !htesting.IsCI() {
290 t.Skip("Skip long running test when running locally")
291 }
292 @@ -188,6 +200,9 @@ func TestTransformPostCSSImporSkipInlineImportsNotFound(t *testing.T) {
293
294 // Issue 9787
295 func TestTransformPostCSSResourceCacheWithPathInBaseURL(t *testing.T) {
296 + if os.Getenv("AUTOPKGTEST_TMP") == "" {
297 + t.Skip("Skip test as network is inaccessible during Debian package build")
298 + }
299 if !htesting.IsCI() {
300 t.Skip("Skip long running test when running locally")
301 }
302 @@ -219,6 +234,8 @@ Styles Content: Len: 770917
303 // See Issue 15039.
304 // See Issue 15040.
305 func TestTransformPostCSSConfigResolution(t *testing.T) {
306 + t.Skip("This tests needs internet access")
307 +
308 if !htesting.IsCI() {
309 t.Skip("Skip long running test when running locally")
310 }
311 @@ -309,6 +326,9 @@ CONFIG_FILE_CONTENT
312
313 // See Issue 13987.
314 func TestTransformPostCSSESMConfigInModule(t *testing.T) {
315 + if os.Getenv("AUTOPKGTEST_TMP") == "" {
316 + t.Skip("Skip test as network is inaccessible during Debian package build")
317 + }
318 if !htesting.IsCI() {
319 t.Skip("Skip long running test when running locally")
320 }
321 @@ -387,6 +407,8 @@ export default { plugins: [postcssImport()] };
322 //
323 // See issue 15041.
324 func TestTransformPostCSSESMConfigAccessDenied(t *testing.T) {
325 + t.Skip("This tests needs internet access")
326 +
327 if !htesting.IsCI() {
328 t.Skip("Skip long running test when running locally")
329 }
330 diff --git a/resources/resource_transformers/cssjs/tailwindcss_integration_test.go b/resources/resource_transformers/cssjs/tailwindcss_integration_test.go
331 index 21702c3..f26b4aa 100644
332 --- a/resources/resource_transformers/cssjs/tailwindcss_integration_test.go
333 +++ b/resources/resource_transformers/cssjs/tailwindcss_integration_test.go
334 @@ -14,6 +14,10 @@
335 package cssjs_test
336
337 import (
338 + "os"
339 + "os/exec"
340 + "runtime"
341 + "strings"
342 "testing"
343
344 qt "github.com/frankban/quicktest"
345 @@ -22,6 +26,23 @@ import (
346 )
347
348 func TestTailwindV4Basic(t *testing.T) {
349 + if os.Getenv("AUTOPKGTEST_TMP") == "" {
350 + t.Skip("Skip test as network is inaccessible during Debian package build")
351 + }
352 + if !(runtime.GOARCH == "amd64" || runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") {
353 + t.Skipf("Skip test: prebuild of @parcel/watcher is available only for x64 (amd64), arm and arm64; see https://www.npmjs.com/search?q=%%40parcel%%2Fwatcher-linux")
354 + }
355 + if runtime.GOARCH == "arm" {
356 + cmd := exec.Command("/usr/bin/go", "env", "GOARM")
357 + out, err := cmd.Output()
358 + if err != nil {
359 + t.Skipf("Skip test: failed to check GOARM: %v: %v", cmd, err)
360 + }
361 + goarm := strings.TrimSpace(string(out))
362 + if goarm == "5,softfloat" {
363 + t.Skipf("Skip test: prebuild of @parcel/watcher is available for armhf but not for armel (GOARM=%v); see https://www.npmjs.com/search?q=%%40parcel%%2Fwatcher-linux", goarm)
364 + }
365 + }
366 if !htesting.IsCI() {
367 t.Skip("Skip long running test when running locally")
368 }
369 @@ -67,6 +88,8 @@ CSS: {{ $css.Content | safeCSS }}|
370
371 // See issue 15103.
372 func TestTailwindCSSImportContext(t *testing.T) {
373 + t.Skip("This test needs npm with internet access")
374 +
375 t.Parallel()
376 htesting.SkipSlowTestUnlessCI(t)
377
378 @@ -106,6 +129,7 @@ CSS: {{ $css.Content | safeCSS }}|
379 }
380
381 func TestTailwindCSSNoInlineImportsIssue13719(t *testing.T) {
382 + t.Skip("This tests needs internet access")
383 t.Parallel()
384 htesting.SkipSlowTestUnlessCI(t)
385
386 diff --git a/resources/resource_transformers/js/js_integration_test.go b/resources/resource_transformers/js/js_integration_test.go
387 index 2244e8f..b4b620d 100644
388 --- a/resources/resource_transformers/js/js_integration_test.go
389 +++ b/resources/resource_transformers/js/js_integration_test.go
390 @@ -115,6 +115,9 @@ COUNT2: {{ len .Data.Artifacts }}
391 }
392
393 func TestBuildWithModAndNpm(t *testing.T) {
394 + if os.Getenv("AUTOPKGTEST_TMP") == "" {
395 + t.Skip("Skip test as network is inaccessible during Debian package build")
396 + }
397 if !htesting.IsCI() {
398 t.Skip("skip (relative) long running modules test when running locally")
399 }
400 @@ -165,6 +168,9 @@ module.exports = window.ReactDOM;
401 }
402
403 func TestBuildWithNpm(t *testing.T) {
404 + if os.Getenv("AUTOPKGTEST_TMP") == "" {
405 + t.Skip("Skip test as network is inaccessible during Debian package build")
406 + }
407 if !htesting.IsCI() {
408 t.Skip("skip (relative) long running modules test when running locally")
409 }
410 diff --git a/testscripts/commands/hugo__static_issue14507.txt b/testscripts/commands/hugo__static_issue14507.txt
411 deleted file mode 100644
412 index 429b9b9..0000000
413 --- a/testscripts/commands/hugo__static_issue14507.txt
414 +++ /dev/null
415 @@ -1,27 +0,0 @@
416 -hugo
417 -
418 -# Verify published files are writable.
419 -[!windows] exec sh -c 'test -w public/a.txt'
420 -[!windows] exec sh -c 'test -w public/sitemap.xml'
421 -
422 -[windows] exec cmd /c attrib public\a.txt
423 -[windows] ! stdout 'R.*public'
424 -[windows] exec cmd /c attrib public\sitemap.xml
425 -[windows] ! stdout 'R.*public'
426 -
427 --- hugo.toml --
428 -baseURL = 'https://example.org/'
429 -disableKinds = ['page','rss','section','sitemap','taxonomy','term']
430 -
431 -[[module.imports]]
432 -path = 'github.com/gohugoio/hugoTestModule2'
433 --- content/_index.md --
434 ----
435 -title: home
436 ----
437 --- layouts/all.html --
438 -{{ .Title }}
439 --- go.mod --
440 -module github.com/gohugoio/tests/testIssue14507
441 -
442 -go 1.23
443 diff --git a/testscripts/commands/mod.txt b/testscripts/commands/mod.txt
444 deleted file mode 100644
445 index ee0a9ad..0000000
446 --- a/testscripts/commands/mod.txt
447 +++ /dev/null
448 @@ -1,45 +0,0 @@
449 -# Test the hugo mod commands.
450 -
451 -hugo mod graph
452 -stdout 'empty-hugo'
453 -hugo mod verify
454 -! stderr .
455 -hugo mod get -u
456 -! stderr .
457 -hugo mod get -u ./...
458 -! stderr .
459 -hugo mod vendor
460 -! stderr .
461 -cmp _vendor/modules.txt golden/vendor.txt
462 -hugo mod clean
463 -! stderr .
464 -stdout 'hugo: removed 1 dirs in module cache for \"github.com/bep/empty-hugo-module\"'
465 -hugo mod clean --all
466 -stdout 'Deleted (2|3)\d{2} directories from module cache\.'
467 -cd submod
468 -hugo mod init testsubmod
469 -cmpenv go.mod $WORK/golden/go.mod.testsubmod
470 -hugo mod get -h
471 -stdout 'hugo mod get \[flags\] \[args\]'
472 -hugo mod get --help
473 -stdout 'hugo mod get \[flags\] \[args\]'
474 --- hugo.toml --
475 -title = "Hugo Modules Test"
476 -[module]
477 -[[module.imports]]
478 -path="github.com/bep/empty-hugo-module"
479 -[[module.imports.mounts]]
480 -source="README.md"
481 -target="content/_index.md"
482 --- go.mod --
483 -go 1.19
484 -
485 -module github.com/gohugoio/testmod
486 --- submod/hugo.toml --
487 -title = "Hugo Sub Module"
488 --- golden/vendor.txt --
489 -# github.com/bep/empty-hugo-module v1.0.0
490 --- golden/go.mod.testsubmod --
491 -module testsubmod
492 -
493 -go ${GOMODVERSION}
494 diff --git a/testscripts/commands/mod__disable.txt b/testscripts/commands/mod__disable.txt
495 deleted file mode 100644
496 index f2d65dd..0000000
497 --- a/testscripts/commands/mod__disable.txt
498 +++ /dev/null
499 @@ -1,15 +0,0 @@
500 -hugo mod graph
501 -stdout 'withhugotoml.*commonmod'
502 -
503 --- hugo.toml --
504 -title = "Hugo Modules Test"
505 -[module]
506 -[[module.imports]]
507 -path="github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml"
508 -disable = true
509 -[[module.imports]]
510 -path="github.com/gohugoio/hugo-mod-integrationtests/withhugotoml"
511 --- go.mod --
512 -module foo
513 -go 1.19
514 -
515 diff --git a/testscripts/commands/mod__hugodirectsum.txt b/testscripts/commands/mod__hugodirectsum.txt
516 deleted file mode 100644
517 index ce3d3e4..0000000
518 --- a/testscripts/commands/mod__hugodirectsum.txt
519 +++ /dev/null
520 @@ -1,15 +0,0 @@
521 -hugo mod graph
522 -stdout 'foo'
523 -grep 'github.com/bep/hugo-mod-nop v1.0.0 h1:NRDMRPCD\+4dw5K8XvaZURvZJCfBMCifkRe6C6x6W4II=' hugo.direct.sum
524 -
525 --- hugo.toml --
526 -baseURL = "https://example.org"
527 -[[module.imports]]
528 -path = "github.com/bep/hugo-mod-nop"
529 -version = "v1.0.0"
530 --- layouts/all.html --
531 -All.
532 --- go.mod --
533 -module foo
534 -
535 -go 1.24.0
536 \ No newline at end of file
537 diff --git a/testscripts/commands/mod__hugodirectsum_tamper.txt b/testscripts/commands/mod__hugodirectsum_tamper.txt
538 deleted file mode 100644
539 index e07676d..0000000
540 --- a/testscripts/commands/mod__hugodirectsum_tamper.txt
541 +++ /dev/null
542 @@ -1,16 +0,0 @@
543 -! hugo
544 -stderr 'checksum mismatch'
545 -
546 --- hugo.toml --
547 -baseURL = "https://example.org"
548 -[[module.imports]]
549 -path = "github.com/bep/hugo-mod-nop"
550 -version = "v1.0.0"
551 --- layouts/all.html --
552 -All.
553 --- go.mod --
554 -module foo
555 -
556 -go 1.24.0
557 --- hugo.direct.sum --
558 -github.com/bep/hugo-mod-nop v1.0.0 h1:NRDMRPCD+4dw5K8XvaZURvZJCfBMCifkRe6C6x6W4Ix=
559 \ No newline at end of file
560 diff --git a/testscripts/commands/mod__tamper_gosum.txt b/testscripts/commands/mod__tamper_gosum.txt
561 deleted file mode 100644
562 index 8aabba9..0000000
563 --- a/testscripts/commands/mod__tamper_gosum.txt
564 +++ /dev/null
565 @@ -1,22 +0,0 @@
566 -
567 -# We're not testing Go's security here, so we just edit the go.sum and verifies that the build fails.
568 -
569 -! hugo
570 -stderr 'checksum mismatch'
571 -
572 -
573 --- hugo.toml --
574 -baseURL = "https://example.org"
575 -[[module.imports]]
576 -path = "github.com/bep/hugo-mod-nop"
577 --- layouts/all.html --
578 -All.
579 --- go.mod --
580 -module foo
581 -
582 -go 1.24.0
583 -
584 -require github.com/bep/hugo-mod-nop v1.0.0 // indirect
585 --- go.sum --
586 -github.com/bep/hugo-mod-nop v1.0.0 h1:NRDMRPCD+4dw5K8XvaZURvZJCfBMCifkRe6C6x6W4II=
587 -github.com/bep/hugo-mod-nop v1.0.0/go.mod h1:6cqjOCVJHP6+aQ+5IYvaS9j8BfIVksAct4xzl9OnmIX=
588 \ No newline at end of file
589 diff --git a/testscripts/commands/mod_get.txt b/testscripts/commands/mod_get.txt
590 deleted file mode 100644
591 index d11d3b8..0000000
592 --- a/testscripts/commands/mod_get.txt
593 +++ /dev/null
594 @@ -1,15 +0,0 @@
595 -hugo mod get
596 -stderr 'withhugotoml.*v1.1.0'
597 -
598 --- hugo.toml --
599 -title = "Hugo Modules Test"
600 -[module]
601 -[[module.imports]]
602 -path="github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml"
603 -disable = true
604 -[[module.imports]]
605 -path="github.com/gohugoio/hugo-mod-integrationtests/withhugotoml"
606 --- go.mod --
607 -module foo
608 -go 1.20
609 -
610 diff --git a/testscripts/commands/mod_get_u.txt b/testscripts/commands/mod_get_u.txt
611 deleted file mode 100644
612 index f3efc0c..0000000
613 --- a/testscripts/commands/mod_get_u.txt
614 +++ /dev/null
615 @@ -1,22 +0,0 @@
616 -hugo mod get -u
617 -hugo mod graph
618 -stdout '[email protected].*[email protected]'
619 -
620 --- hugo.toml --
621 -title = "Hugo Modules Update Test"
622 -theme = ["my-theme"]
623 -[module]
624 -[[module.imports]]
625 -path="github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml"
626 -disable = true
627 -[[module.imports]]
628 -path="github.com/gohugoio/hugo-mod-integrationtests/withhugotoml"
629 --- go.mod --
630 -module foo
631 -go 1.20
632 -require (
633 - github.com/gohugoio/hugo-mod-integrationtests/withhugotoml v1.1.0 // indirect
634 - github.com/gohugoio/hugo-mod-integrationtests/commonmod v0.0.0-20230823103305-919cefe8a425 // indirect
635 -)
636 --- themes/my-theme/dummy.txt --
637 -MY THEME
638 diff --git a/testscripts/commands/mod_npm.txt b/testscripts/commands/mod_npm.txt
639 deleted file mode 100644
640 index 169f26c..0000000
641 --- a/testscripts/commands/mod_npm.txt
642 +++ /dev/null
643 @@ -1,214 +0,0 @@
644 -# Test mod npm pack.
645 -
646 -hugo mod npm pack
647 -cmp packages/hugoautogen/package.json golden1/packages/hugoautogen/package.json
648 -cmp package.json golden1/package.json
649 -cmp packages/hugoautogen/hugo_packagemeta.json golden1/packages/hugoautogen/hugo_packagemeta.json
650 -
651 -# c module commits:
652 -# 324e3adae608ff8b6a52b4630975ffe652859f27: add is-odd
653 -# 40c59ae8595d8ff3f56b87fcf4ba3325649a9a52: replace is-odd with is-even
654 -# 7dd9b2dc7f505508adbb3fdea36c308aad0de3ec: add package.hugo.json with is-number
655 -# bf55e8bb813a7f6cbe6f212bd7e1dd4fb44c79df: update README.md only
656 -# cc5188f671e1852f470df9fed52c7f93d1cab476: Add myworkspace with my-prime (in package.hugo.json)
657 -replace hugo.toml "324e3adae608ff8b6a52b4630975ffe652859f27" "40c59ae8595d8ff3f56b87fcf4ba3325649a9a52"
658 -
659 -hugo mod graph
660 -stderr 'WARN npm dependencies are out of sync'
661 -
662 -hugo mod npm pack
663 -cmp packages/hugoautogen/package.json golden2/packages/hugoautogen/package.json
664 -
665 -replace hugo.toml "40c59ae8595d8ff3f56b87fcf4ba3325649a9a52" "7dd9b2dc7f505508adbb3fdea36c308aad0de3ec"
666 -hugo mod npm pack
667 -cmp packages/hugoautogen/package.json golden3/packages/hugoautogen/package.json
668 -
669 -# This commit only updates README.md, no npm package updates.
670 -replace hugo.toml "7dd9b2dc7f505508adbb3fdea36c308aad0de3ec" "bf55e8bb813a7f6cbe6f212bd7e1dd4fb44c79df"
671 -hugo mod graph
672 -! stderr 'WARN'
673 -
674 -# Add myworkspace with my-prime (in package.hugo.json)
675 -replace hugo.toml "bf55e8bb813a7f6cbe6f212bd7e1dd4fb44c79df" "cc5188f671e1852f470df9fed52c7f93d1cab476"
676 -hugo mod npm pack
677 -cmp packages/hugoautogen/package.json golden4/packages/hugoautogen/package.json
678 -
679 -# usePackageJSON="auto" => usePackageJSON="never" in hugo.toml will effectively disable c's npm deps.
680 -replace hugo.toml "auto" "never"
681 -hugo mod graph
682 -# dependencies are out of sync
683 -stderr 'WARN'
684 -hugo mod npm pack
685 -cmp packages/hugoautogen/package.json golden5/packages/hugoautogen/package.json
686 -# Turn it back on using "always"
687 -replace hugo.toml "never" "always"
688 -hugo mod graph
689 -stderr 'WARN'
690 -hugo mod npm pack
691 -hugo mod graph
692 -! stderr 'WARN'
693 -cmp packages/hugoautogen/package.json golden4/packages/hugoautogen/package.json
694 -
695 -# Now test vendoring..
696 -hugo mod vendor
697 -# a ab c@cc5188f671e1852f470df9fed52c7f93d1cab476 d
698 -ls _vendor/github.com/gohugoio/hugoTestModsNPMNested/a
699 -stdout 'package.json'
700 -ls _vendor/github.com/gohugoio/hugoTestModsNPMNested/a/packages/aws1
701 -stdout 'package.json'
702 -
703 -ls _vendor/github.com/gohugoio/hugoTestModsNPMNested/c@cc5188f671e1852f470df9fed52c7f93d1cab476
704 -stdout 'package.hugo.json'
705 -# package.json is not needed when package.hugo.json exists.
706 -! stdout 'package.json'
707 -! exists _vendor/github.com/gohugoio/hugoTestModsNPMNested/ab/packages/hugoautogen
708 -
709 --- hugo.toml --
710 -baseURL = "https://example.org/"
711 -[module]
712 -[[module.imports]]
713 -path="github.com/gohugoio/hugoTestModsNPMNested/a"
714 -[[module.imports]]
715 -path="github.com/gohugoio/hugoTestModsNPMNested/c"
716 -version="324e3adae608ff8b6a52b4630975ffe652859f27"
717 -usePackageJSON="auto"
718 --- package.json --
719 -{
720 - "workspaces": [
721 - "packages/hugoautogen"
722 - ],
723 - "name": "npmpack",
724 - "version": "1.0.0",
725 - "dependencies": {
726 - "dedupe": "4.0.3"
727 - }
728 -}
729 --- golden1/packages/hugoautogen/hugo_packagemeta.json --
730 -{
731 - "sum": "259f33c1d93dcc01",
732 - "dependencySources": {
733 - "dependencies": {
734 - "count-days-in-month": "github.com/gohugoio/hugoTestModsNPMNested/a",
735 - "fast-cartesian": "github.com/gohugoio/hugoTestModsNPMNested/a",
736 - "is-odd": "github.com/gohugoio/hugoTestModsNPMNested/c",
737 - "is-sorted": "github.com/gohugoio/hugoTestModsNPMNested/a",
738 - "once": "github.com/gohugoio/hugoTestModsNPMNested/d",
739 - "pluralize": "github.com/gohugoio/hugoTestModsNPMNested/ab",
740 - "to-space-case": "github.com/gohugoio/hugoTestModsNPMNested/a"
741 - },
742 - "devDependencies": {
743 - "decamelize": "github.com/gohugoio/hugoTestModsNPMNested/a",
744 - "strip-ansi": "github.com/gohugoio/hugoTestModsNPMNested/a",
745 - "to-pascal-case": "github.com/gohugoio/hugoTestModsNPMNested/a"
746 - }
747 - }
748 -}
749 --- golden1/packages/hugoautogen/package.json --
750 -{
751 - "dependencies": {
752 - "count-days-in-month": "^1.0.0",
753 - "fast-cartesian": "9.0.0",
754 - "is-odd": "3.0.0",
755 - "is-sorted": "1.0.4",
756 - "once": "1.4.0",
757 - "pluralize": "8.0.0",
758 - "to-space-case": "0.1.3"
759 - },
760 - "devDependencies": {
761 - "decamelize": "6.0.0",
762 - "strip-ansi": "7.2.0",
763 - "to-pascal-case": "1.0.0"
764 - },
765 - "name": "script-mod_npm",
766 - "version": "0.1.0"
767 -}
768 --- golden1/package.json --
769 -{
770 - "workspaces": [
771 - "packages/hugoautogen"
772 - ],
773 - "name": "npmpack",
774 - "version": "1.0.0",
775 - "dependencies": {
776 - "dedupe": "4.0.3"
777 - }
778 -}
779 --- golden2/packages/hugoautogen/package.json --
780 -{
781 - "dependencies": {
782 - "count-days-in-month": "^1.0.0",
783 - "fast-cartesian": "9.0.0",
784 - "is-even": "1.0.0",
785 - "is-sorted": "1.0.4",
786 - "once": "1.4.0",
787 - "pluralize": "8.0.0",
788 - "to-space-case": "0.1.3"
789 - },
790 - "devDependencies": {
791 - "decamelize": "6.0.0",
792 - "strip-ansi": "7.2.0",
793 - "to-pascal-case": "1.0.0"
794 - },
795 - "name": "script-mod_npm",
796 - "version": "0.1.0"
797 -}
798 --- golden3/packages/hugoautogen/package.json --
799 -{
800 - "dependencies": {
801 - "count-days-in-month": "^1.0.0",
802 - "fast-cartesian": "9.0.0",
803 - "is-number": "7.0.0",
804 - "is-sorted": "1.0.4",
805 - "once": "1.4.0",
806 - "pluralize": "8.0.0",
807 - "to-space-case": "0.1.3"
808 - },
809 - "devDependencies": {
810 - "decamelize": "6.0.0",
811 - "strip-ansi": "7.2.0",
812 - "to-pascal-case": "1.0.0"
813 - },
814 - "name": "script-mod_npm",
815 - "version": "0.1.0"
816 -}
817 --- golden4/packages/hugoautogen/package.json --
818 -{
819 - "dependencies": {
820 - "count-days-in-month": "^1.0.0",
821 - "fast-cartesian": "9.0.0",
822 - "is-number": "7.0.0",
823 - "is-sorted": "1.0.4",
824 - "my-prime": "^1.0.1",
825 - "once": "1.4.0",
826 - "pluralize": "8.0.0",
827 - "to-space-case": "0.1.3"
828 - },
829 - "devDependencies": {
830 - "decamelize": "6.0.0",
831 - "strip-ansi": "7.2.0",
832 - "to-pascal-case": "1.0.0"
833 - },
834 - "name": "script-mod_npm",
835 - "version": "0.1.0"
836 -}
837 --- golden5/packages/hugoautogen/package.json --
838 -{
839 - "dependencies": {
840 - "count-days-in-month": "^1.0.0",
841 - "fast-cartesian": "9.0.0",
842 - "is-sorted": "1.0.4",
843 - "once": "1.4.0",
844 - "pluralize": "8.0.0",
845 - "to-space-case": "0.1.3"
846 - },
847 - "devDependencies": {
848 - "decamelize": "6.0.0",
849 - "strip-ansi": "7.2.0",
850 - "to-pascal-case": "1.0.0"
851 - },
852 - "name": "script-mod_npm",
853 - "version": "0.1.0"
854 -}
855 --- go.mod --
856 -module github.com/gohugoio/hugoTestModule
857 -go 1.20
858 diff --git a/testscripts/commands/mod_npm__moduleorder.txt b/testscripts/commands/mod_npm__moduleorder.txt
859 deleted file mode 100644
860 index 4dc2020..0000000
861 --- a/testscripts/commands/mod_npm__moduleorder.txt
862 +++ /dev/null
863 @@ -1,67 +0,0 @@
864 -# Test mod npm pack with shuffled modules.
865 -
866 -hugo mod npm pack
867 -cmp packages/hugoautogen/package.json golden1/packages/hugoautogen/package.json
868 -cmp package.json golden1/package.json
869 -cmp packages/hugoautogen/hugo_packagemeta.json golden1/packages/hugoautogen/hugo_packagemeta.json
870 -
871 -hugo mod graph
872 -! stderr 'WARN npm dependencies are out of sync'
873 -
874 --- hugo.toml --
875 -baseURL = "https://example.org/"
876 -[module]
877 -[[module.imports]]
878 -path="github.com/gohugoio/hugoTestModsNPMNested/d"
879 -[[module.imports]]
880 -path="github.com/gohugoio/hugoTestModsNPMNested/a"
881 -
882 --- go.mod --
883 -module github.com/gohugoio/hugoTestModule
884 -go 1.20
885 -
886 --- golden1/package.json --
887 -{
888 - "workspaces": [
889 - "packages/hugoautogen"
890 - ]
891 -}
892 --- golden1/packages/hugoautogen/package.json --
893 -{
894 - "dependencies": {
895 - "count-days-in-month": "^1.0.0",
896 - "dedupe": "4.0.1",
897 - "fast-cartesian": "9.0.0",
898 - "is-sorted": "1.0.2",
899 - "once": "1.4.0",
900 - "pluralize": "8.0.0",
901 - "to-space-case": "0.1.3"
902 - },
903 - "devDependencies": {
904 - "decamelize": "6.0.0",
905 - "strip-ansi": "7.0.0",
906 - "to-pascal-case": "1.0.0"
907 - },
908 - "name": "script-mod_npm__moduleorder",
909 - "version": "0.1.0"
910 -}
911 --- golden1/packages/hugoautogen/hugo_packagemeta.json --
912 -{
913 - "sum": "98594123fa88aedf",
914 - "dependencySources": {
915 - "dependencies": {
916 - "count-days-in-month": "github.com/gohugoio/hugoTestModsNPMNested/a",
917 - "dedupe": "github.com/gohugoio/hugoTestModsNPMNested/ab",
918 - "fast-cartesian": "github.com/gohugoio/hugoTestModsNPMNested/a",
919 - "is-sorted": "github.com/gohugoio/hugoTestModsNPMNested/d",
920 - "once": "github.com/gohugoio/hugoTestModsNPMNested/d",
921 - "pluralize": "github.com/gohugoio/hugoTestModsNPMNested/ab",
922 - "to-space-case": "github.com/gohugoio/hugoTestModsNPMNested/a"
923 - },
924 - "devDependencies": {
925 - "decamelize": "github.com/gohugoio/hugoTestModsNPMNested/a",
926 - "strip-ansi": "github.com/gohugoio/hugoTestModsNPMNested/ab",
927 - "to-pascal-case": "github.com/gohugoio/hugoTestModsNPMNested/a"
928 - }
929 - }
930 -}
931 diff --git a/testscripts/commands/mod_npm_withexisting.txt b/testscripts/commands/mod_npm_withexisting.txt
932 deleted file mode 100644
933 index b11a4a3..0000000
934 --- a/testscripts/commands/mod_npm_withexisting.txt
935 +++ /dev/null
936 @@ -1,61 +0,0 @@
937 -# Test mod npm with existing package.json.
938 -
939 -# See https://github.com/gohugoio/hugo/issues/13465
940 -[windows] skip
941 -
942 -hugo mod npm pack
943 -cmp packages/hugoautogen/package.json golden/packages/hugoautogen/package.json
944 -cmp package.json golden/package.json
945 -exists packages/hugoautogen/hugo_packagemeta.json
946 -
947 --- hugo.toml --
948 -baseURL = "https://example.org/"
949 -[module]
950 -[[module.imports]]
951 -path="github.com/gohugoio/hugoTestModule2"
952 --- package.json --
953 -{
954 - "comments": {
955 - "foo": {
956 - "a": "b"
957 - }
958 - },
959 - "devDependencies": {
960 - "tailwindcss": "2.2.0"
961 - },
962 - "name": "mypackage",
963 - "version": "1.1.0"
964 -}
965 --- golden/packages/hugoautogen/package.json --
966 -{
967 - "dependencies": {
968 - "react-dom": "^16.13.1"
969 - },
970 - "devDependencies": {
971 - "@babel/cli": "7.8.4",
972 - "@babel/core": "7.9.0",
973 - "@babel/preset-env": "7.9.5",
974 - "postcss-cli": "7.1.0"
975 - },
976 - "name": "script-mod_npm_withexisting",
977 - "version": "0.1.0"
978 -}
979 --- golden/package.json --
980 -{
981 - "comments": {
982 - "foo": {
983 - "a": "b"
984 - }
985 - },
986 - "devDependencies": {
987 - "tailwindcss": "2.2.0"
988 - },
989 - "name": "mypackage",
990 - "version": "1.1.0",
991 - "workspaces": [
992 - "packages/hugoautogen"
993 - ]
994 -}
995 --- go.mod --
996 -module github.com/gohugoio/hugoTestModule
997 -go 1.20
998 diff --git a/testscripts/commands/mod_vendor.txt b/testscripts/commands/mod_vendor.txt
999 deleted file mode 100644
1000 index 53bb895..0000000
1001 --- a/testscripts/commands/mod_vendor.txt
1002 +++ /dev/null
1003 @@ -1,29 +0,0 @@
1004 -hugo mod vendor
1005 -cmp _vendor/modules.txt golden/vendor.txt
1006 -ls _vendor/github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml
1007 -stdout 'config.toml'
1008 -ls _vendor/github.com/gohugoio/hugo-mod-integrationtests/withhugotoml
1009 -stdout 'hugo.toml'
1010 -
1011 -
1012 -
1013 --- hugo.toml --
1014 -title = "Hugo Modules Test"
1015 -[module]
1016 -[[module.imports]]
1017 -path="github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml"
1018 -[[module.imports]]
1019 -path="github.com/gohugoio/hugo-mod-integrationtests/withhugotoml"
1020 --- go.mod --
1021 -go 1.19
1022 -
1023 -module github.com/gohugoio/testmod
1024 -
1025 -require (
1026 - github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml v1.0.0
1027 - github.com/gohugoio/hugo-mod-integrationtests/withhugotoml v1.0.0
1028 -)
1029 -
1030 --- golden/vendor.txt --
1031 -# github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml v1.0.0
1032 -# github.com/gohugoio/hugo-mod-integrationtests/withhugotoml v1.0.0
1033 diff --git a/testscripts/commands/mod_vendor__versions.txt b/testscripts/commands/mod_vendor__versions.txt
1034 deleted file mode 100644
1035 index 49070b9..0000000
1036 --- a/testscripts/commands/mod_vendor__versions.txt
1037 +++ /dev/null
1038 @@ -1,100 +0,0 @@
1039 -hugo mod vendor
1040 -cmp _vendor/modules.txt golden/vendor.txt
1041 -lsr _vendor
1042 -stdout 'github.com/bep/hugo-mod-misc/dummy-content@%3C%3Dv0.1.0/config.toml'
1043 -stdout 'github.com/bep/hugo-mod-misc/[email protected]/config.toml'
1044 -stdout 'github.com/bep/hugo-mod-misc/[email protected]/content/blog/music/all-of-me/index.md'
1045 -stdout 'github.com/bep/hugo-mod-misc/[email protected]/content/blog/music/blue-bossa/index.md'
1046 -stdout 'github.com/bep/hugo-mod-misc/dummy-content@%3C%3Dv0.1.0/content/blog/music/all-of-me/index.md'
1047 -! stdout 'github.com/bep/hugo-mod-misc/dummy-content@%3C%3Dv0.1.0/content/blog/music/blue-bossa/index.md' # not mounted
1048 -
1049 -hugo mod graph
1050 -stdout 'project github.com/bep/hugo-mod-misc/[email protected]'
1051 -stdout 'project github.com/bep/hugo-mod-misc/[email protected]'
1052 -
1053 -hugo config mounts
1054 -[unix] cmpenv stdout golden/mounts.json
1055 -
1056 --- hugo.toml --
1057 -baseURL = "https://example.org"
1058 -[[module.imports]]
1059 -path = "github.com/bep/hugo-mod-misc/dummy-content"
1060 -version = "v0.2.0"
1061 -[[module.imports]]
1062 -path = "github.com/bep/hugo-mod-misc/dummy-content"
1063 -version = "<=v0.1.0"
1064 -[[module.imports.mounts]]
1065 -source = "content/blog/music/all-of-me"
1066 -target = "content/all"
1067 --- layouts/all.html --
1068 -Title: {{ .Title }}|Summary: {{ .Summary }}|
1069 -Deps: {{ range hugo.Deps}}{{ printf "%s@%s" .Path .Version }}|{{ end }}$
1070 -
1071 -
1072 --- golden/vendor.txt --
1073 -# github.com/bep/hugo-mod-misc/[email protected] v0.2.0
1074 -# github.com/bep/hugo-mod-misc/dummy-content@%3C%3Dv0.1.0 v0.1.0
1075 --- golden/mounts.json --
1076 -{
1077 - "path": "project",
1078 - "version": "",
1079 - "time": "0001-01-01T00:00:00Z",
1080 - "owner": "",
1081 - "dir": "$WORK",
1082 - "mounts": [
1083 - {
1084 - "source": "content",
1085 - "target": "content"
1086 - },
1087 - {
1088 - "source": "data",
1089 - "target": "data"
1090 - },
1091 - {
1092 - "source": "layouts",
1093 - "target": "layouts"
1094 - },
1095 - {
1096 - "source": "i18n",
1097 - "target": "i18n"
1098 - },
1099 - {
1100 - "source": "archetypes",
1101 - "target": "archetypes"
1102 - },
1103 - {
1104 - "source": "assets",
1105 - "target": "assets"
1106 - },
1107 - {
1108 - "source": "static",
1109 - "target": "static"
1110 - }
1111 - ]
1112 -}
1113 -{
1114 - "path": "github.com/bep/hugo-mod-misc/dummy-content",
1115 - "version": "v0.2.0",
1116 - "time": "0001-01-01T00:00:00Z",
1117 - "owner": "project",
1118 - "dir": "$WORK/_vendor/github.com/bep/hugo-mod-misc/[email protected]/",
1119 - "mounts": [
1120 - {
1121 - "source": "content",
1122 - "target": "content"
1123 - }
1124 - ]
1125 -}
1126 -{
1127 - "path": "github.com/bep/hugo-mod-misc/dummy-content",
1128 - "version": "v0.1.0",
1129 - "time": "0001-01-01T00:00:00Z",
1130 - "owner": "project",
1131 - "dir": "$WORK/_vendor/github.com/bep/hugo-mod-misc/dummy-content@%3C%3Dv0.1.0/",
1132 - "mounts": [
1133 - {
1134 - "source": "content/blog/music/all-of-me",
1135 - "target": "content/all"
1136 - }
1137 - ]
1138 -}
1139 diff --git a/tpl/css/build_integration_test.go b/tpl/css/build_integration_test.go
1140 index e72a1bb..9ffeac5 100644
1141 --- a/tpl/css/build_integration_test.go
1142 +++ b/tpl/css/build_integration_test.go
1143 @@ -607,6 +607,7 @@ SVG file.
1144 }
1145
1146 func TestCSSBuildBootstrapFromNPM(t *testing.T) {
1147 + t.Skip("This tests needs internet access")
1148 htesting.SkipSlowTestUnlessCI(t)
1149 t.Parallel()
1150
1151 diff --git a/tpl/tplimpl/shortcodes_integration_test.go b/tpl/tplimpl/shortcodes_integration_test.go
1152 index 4e7d19b..b04949f 100644
1153 --- a/tpl/tplimpl/shortcodes_integration_test.go
1154 +++ b/tpl/tplimpl/shortcodes_integration_test.go
1155 @@ -441,6 +441,7 @@ title: p1 (de)
1156 }
1157
1158 func TestVimeoShortcode(t *testing.T) {
1159 + t.Skip("This tests needs internet access")
1160 t.Parallel()
1161
1162 files := `
1163 @@ -485,6 +486,7 @@ Content: {{ .Content }}
1164 }
1165
1166 func TestXShortcodes(t *testing.T) {
1167 + t.Skip("This tests needs internet access")
1168 t.Parallel()
1169 htesting.SkipSlowTestUnlessCI(t)
1170