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 | 23 +++
25 .../cssjs/tailwindcss_integration_test.go | 25 +++
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 | 219 ---------------------
36 testscripts/commands/mod_npm__moduleorder.txt | 68 -------
37 testscripts/commands/mod_npm_withexisting.txt | 62 ------
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, 86 insertions(+), 655 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 4a97c8f..f780a8d 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 @@ -1543,6 +1544,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 f3f95e7..d9a9ea7 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 @@ -460,6 +482,7 @@ export default { plugins: [postcssImport()] };
331 // Node's permission model follows symlinks outside the allowed paths, so Hugo
332 // rejects them before invoking Node.
333 func TestTransformPostCSSSymlinkOutsideAllowRead(t *testing.T) {
334 + t.Skip("This tests needs internet access")
335 if !htesting.IsCI() {
336 t.Skip("Skip long running test when running locally")
337 }
338 diff --git a/resources/resource_transformers/cssjs/tailwindcss_integration_test.go b/resources/resource_transformers/cssjs/tailwindcss_integration_test.go
339 index 702bc2f..dc0dddc 100644
340 --- a/resources/resource_transformers/cssjs/tailwindcss_integration_test.go
341 +++ b/resources/resource_transformers/cssjs/tailwindcss_integration_test.go
342 @@ -14,6 +14,10 @@
343 package cssjs_test
344
345 import (
346 + "os"
347 + "os/exec"
348 + "runtime"
349 + "strings"
350 "testing"
351
352 qt "github.com/frankban/quicktest"
353 @@ -22,6 +26,23 @@ import (
354 )
355
356 func TestTailwindV4Basic(t *testing.T) {
357 + if os.Getenv("AUTOPKGTEST_TMP") == "" {
358 + t.Skip("Skip test as network is inaccessible during Debian package build")
359 + }
360 + if !(runtime.GOARCH == "amd64" || runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") {
361 + 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")
362 + }
363 + if runtime.GOARCH == "arm" {
364 + cmd := exec.Command("/usr/bin/go", "env", "GOARM")
365 + out, err := cmd.Output()
366 + if err != nil {
367 + t.Skipf("Skip test: failed to check GOARM: %v: %v", cmd, err)
368 + }
369 + goarm := strings.TrimSpace(string(out))
370 + if goarm == "5,softfloat" {
371 + 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)
372 + }
373 + }
374 if !htesting.IsCI() {
375 t.Skip("Skip long running test when running locally")
376 }
377 @@ -67,6 +88,8 @@ CSS: {{ $css.Content | safeCSS }}|
378
379 // See issue 15103.
380 func TestTailwindCSSImportContext(t *testing.T) {
381 + t.Skip("This test needs npm with internet access")
382 +
383 t.Parallel()
384 htesting.SkipSlowTestUnlessCI(t)
385
386 @@ -107,6 +130,7 @@ CSS: {{ $css.Content | safeCSS }}|
387 }
388
389 func TestTailwindCSSNoInlineImportsIssue13719(t *testing.T) {
390 + t.Skip("This tests needs internet access")
391 t.Parallel()
392 htesting.SkipSlowTestUnlessCI(t)
393
394 @@ -168,6 +192,7 @@ target = 'assets/css'
395 // This tests an internal feature used in the Hugo themes sites building to allow us to build with
396 // default security policy and still get a partial build even for themes using TailwindCSS.
397 func TestTailwindCSSIgnoreSecError(t *testing.T) {
398 + t.Skip("This test needs npm with internet access")
399 if !htesting.IsCI() {
400 t.Skip("Skip long running test when running locally")
401 }
402 diff --git a/resources/resource_transformers/js/js_integration_test.go b/resources/resource_transformers/js/js_integration_test.go
403 index d916f48..3b45cf9 100644
404 --- a/resources/resource_transformers/js/js_integration_test.go
405 +++ b/resources/resource_transformers/js/js_integration_test.go
406 @@ -116,6 +116,9 @@ COUNT2: {{ len .Data.Artifacts }}
407 }
408
409 func TestBuildWithModAndNpm(t *testing.T) {
410 + if os.Getenv("AUTOPKGTEST_TMP") == "" {
411 + t.Skip("Skip test as network is inaccessible during Debian package build")
412 + }
413 if !htesting.IsCI() {
414 t.Skip("skip (relative) long running modules test when running locally")
415 }
416 @@ -166,6 +169,9 @@ module.exports = window.ReactDOM;
417 }
418
419 func TestBuildWithNpm(t *testing.T) {
420 + if os.Getenv("AUTOPKGTEST_TMP") == "" {
421 + t.Skip("Skip test as network is inaccessible during Debian package build")
422 + }
423 if !htesting.IsCI() {
424 t.Skip("skip (relative) long running modules test when running locally")
425 }
426 diff --git a/testscripts/commands/hugo__static_issue14507.txt b/testscripts/commands/hugo__static_issue14507.txt
427 deleted file mode 100644
428 index 429b9b9..0000000
429 --- a/testscripts/commands/hugo__static_issue14507.txt
430 +++ /dev/null
431 @@ -1,27 +0,0 @@
432 -hugo
433 -
434 -# Verify published files are writable.
435 -[!windows] exec sh -c 'test -w public/a.txt'
436 -[!windows] exec sh -c 'test -w public/sitemap.xml'
437 -
438 -[windows] exec cmd /c attrib public\a.txt
439 -[windows] ! stdout 'R.*public'
440 -[windows] exec cmd /c attrib public\sitemap.xml
441 -[windows] ! stdout 'R.*public'
442 -
443 --- hugo.toml --
444 -baseURL = 'https://example.org/'
445 -disableKinds = ['page','rss','section','sitemap','taxonomy','term']
446 -
447 -[[module.imports]]
448 -path = 'github.com/gohugoio/hugoTestModule2'
449 --- content/_index.md --
450 ----
451 -title: home
452 ----
453 --- layouts/all.html --
454 -{{ .Title }}
455 --- go.mod --
456 -module github.com/gohugoio/tests/testIssue14507
457 -
458 -go 1.23
459 diff --git a/testscripts/commands/mod.txt b/testscripts/commands/mod.txt
460 deleted file mode 100644
461 index ee0a9ad..0000000
462 --- a/testscripts/commands/mod.txt
463 +++ /dev/null
464 @@ -1,45 +0,0 @@
465 -# Test the hugo mod commands.
466 -
467 -hugo mod graph
468 -stdout 'empty-hugo'
469 -hugo mod verify
470 -! stderr .
471 -hugo mod get -u
472 -! stderr .
473 -hugo mod get -u ./...
474 -! stderr .
475 -hugo mod vendor
476 -! stderr .
477 -cmp _vendor/modules.txt golden/vendor.txt
478 -hugo mod clean
479 -! stderr .
480 -stdout 'hugo: removed 1 dirs in module cache for \"github.com/bep/empty-hugo-module\"'
481 -hugo mod clean --all
482 -stdout 'Deleted (2|3)\d{2} directories from module cache\.'
483 -cd submod
484 -hugo mod init testsubmod
485 -cmpenv go.mod $WORK/golden/go.mod.testsubmod
486 -hugo mod get -h
487 -stdout 'hugo mod get \[flags\] \[args\]'
488 -hugo mod get --help
489 -stdout 'hugo mod get \[flags\] \[args\]'
490 --- hugo.toml --
491 -title = "Hugo Modules Test"
492 -[module]
493 -[[module.imports]]
494 -path="github.com/bep/empty-hugo-module"
495 -[[module.imports.mounts]]
496 -source="README.md"
497 -target="content/_index.md"
498 --- go.mod --
499 -go 1.19
500 -
501 -module github.com/gohugoio/testmod
502 --- submod/hugo.toml --
503 -title = "Hugo Sub Module"
504 --- golden/vendor.txt --
505 -# github.com/bep/empty-hugo-module v1.0.0
506 --- golden/go.mod.testsubmod --
507 -module testsubmod
508 -
509 -go ${GOMODVERSION}
510 diff --git a/testscripts/commands/mod__disable.txt b/testscripts/commands/mod__disable.txt
511 deleted file mode 100644
512 index f2d65dd..0000000
513 --- a/testscripts/commands/mod__disable.txt
514 +++ /dev/null
515 @@ -1,15 +0,0 @@
516 -hugo mod graph
517 -stdout 'withhugotoml.*commonmod'
518 -
519 --- hugo.toml --
520 -title = "Hugo Modules Test"
521 -[module]
522 -[[module.imports]]
523 -path="github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml"
524 -disable = true
525 -[[module.imports]]
526 -path="github.com/gohugoio/hugo-mod-integrationtests/withhugotoml"
527 --- go.mod --
528 -module foo
529 -go 1.19
530 -
531 diff --git a/testscripts/commands/mod__hugodirectsum.txt b/testscripts/commands/mod__hugodirectsum.txt
532 deleted file mode 100644
533 index ce3d3e4..0000000
534 --- a/testscripts/commands/mod__hugodirectsum.txt
535 +++ /dev/null
536 @@ -1,15 +0,0 @@
537 -hugo mod graph
538 -stdout 'foo'
539 -grep 'github.com/bep/hugo-mod-nop v1.0.0 h1:NRDMRPCD\+4dw5K8XvaZURvZJCfBMCifkRe6C6x6W4II=' hugo.direct.sum
540 -
541 --- hugo.toml --
542 -baseURL = "https://example.org"
543 -[[module.imports]]
544 -path = "github.com/bep/hugo-mod-nop"
545 -version = "v1.0.0"
546 --- layouts/all.html --
547 -All.
548 --- go.mod --
549 -module foo
550 -
551 -go 1.24.0
552 \ No newline at end of file
553 diff --git a/testscripts/commands/mod__hugodirectsum_tamper.txt b/testscripts/commands/mod__hugodirectsum_tamper.txt
554 deleted file mode 100644
555 index e07676d..0000000
556 --- a/testscripts/commands/mod__hugodirectsum_tamper.txt
557 +++ /dev/null
558 @@ -1,16 +0,0 @@
559 -! hugo
560 -stderr 'checksum mismatch'
561 -
562 --- hugo.toml --
563 -baseURL = "https://example.org"
564 -[[module.imports]]
565 -path = "github.com/bep/hugo-mod-nop"
566 -version = "v1.0.0"
567 --- layouts/all.html --
568 -All.
569 --- go.mod --
570 -module foo
571 -
572 -go 1.24.0
573 --- hugo.direct.sum --
574 -github.com/bep/hugo-mod-nop v1.0.0 h1:NRDMRPCD+4dw5K8XvaZURvZJCfBMCifkRe6C6x6W4Ix=
575 \ No newline at end of file
576 diff --git a/testscripts/commands/mod__tamper_gosum.txt b/testscripts/commands/mod__tamper_gosum.txt
577 deleted file mode 100644
578 index 8aabba9..0000000
579 --- a/testscripts/commands/mod__tamper_gosum.txt
580 +++ /dev/null
581 @@ -1,22 +0,0 @@
582 -
583 -# We're not testing Go's security here, so we just edit the go.sum and verifies that the build fails.
584 -
585 -! hugo
586 -stderr 'checksum mismatch'
587 -
588 -
589 --- hugo.toml --
590 -baseURL = "https://example.org"
591 -[[module.imports]]
592 -path = "github.com/bep/hugo-mod-nop"
593 --- layouts/all.html --
594 -All.
595 --- go.mod --
596 -module foo
597 -
598 -go 1.24.0
599 -
600 -require github.com/bep/hugo-mod-nop v1.0.0 // indirect
601 --- go.sum --
602 -github.com/bep/hugo-mod-nop v1.0.0 h1:NRDMRPCD+4dw5K8XvaZURvZJCfBMCifkRe6C6x6W4II=
603 -github.com/bep/hugo-mod-nop v1.0.0/go.mod h1:6cqjOCVJHP6+aQ+5IYvaS9j8BfIVksAct4xzl9OnmIX=
604 \ No newline at end of file
605 diff --git a/testscripts/commands/mod_get.txt b/testscripts/commands/mod_get.txt
606 deleted file mode 100644
607 index d11d3b8..0000000
608 --- a/testscripts/commands/mod_get.txt
609 +++ /dev/null
610 @@ -1,15 +0,0 @@
611 -hugo mod get
612 -stderr 'withhugotoml.*v1.1.0'
613 -
614 --- hugo.toml --
615 -title = "Hugo Modules Test"
616 -[module]
617 -[[module.imports]]
618 -path="github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml"
619 -disable = true
620 -[[module.imports]]
621 -path="github.com/gohugoio/hugo-mod-integrationtests/withhugotoml"
622 --- go.mod --
623 -module foo
624 -go 1.20
625 -
626 diff --git a/testscripts/commands/mod_get_u.txt b/testscripts/commands/mod_get_u.txt
627 deleted file mode 100644
628 index f3efc0c..0000000
629 --- a/testscripts/commands/mod_get_u.txt
630 +++ /dev/null
631 @@ -1,22 +0,0 @@
632 -hugo mod get -u
633 -hugo mod graph
634 -stdout '[email protected].*[email protected]'
635 -
636 --- hugo.toml --
637 -title = "Hugo Modules Update Test"
638 -theme = ["my-theme"]
639 -[module]
640 -[[module.imports]]
641 -path="github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml"
642 -disable = true
643 -[[module.imports]]
644 -path="github.com/gohugoio/hugo-mod-integrationtests/withhugotoml"
645 --- go.mod --
646 -module foo
647 -go 1.20
648 -require (
649 - github.com/gohugoio/hugo-mod-integrationtests/withhugotoml v1.1.0 // indirect
650 - github.com/gohugoio/hugo-mod-integrationtests/commonmod v0.0.0-20230823103305-919cefe8a425 // indirect
651 -)
652 --- themes/my-theme/dummy.txt --
653 -MY THEME
654 diff --git a/testscripts/commands/mod_npm.txt b/testscripts/commands/mod_npm.txt
655 deleted file mode 100644
656 index 136277f..0000000
657 --- a/testscripts/commands/mod_npm.txt
658 +++ /dev/null
659 @@ -1,219 +0,0 @@
660 -# Test mod npm pack.
661 -
662 -hugo mod npm pack
663 -cmp packages/hugoautogen/package.json golden1/packages/hugoautogen/package.json
664 -cmp package.json golden1/package.json
665 -cmp packages/hugoautogen/hugo_packagemeta.json golden1/packages/hugoautogen/hugo_packagemeta.json
666 -
667 -# c module commits:
668 -# 324e3adae608ff8b6a52b4630975ffe652859f27: add is-odd
669 -# 40c59ae8595d8ff3f56b87fcf4ba3325649a9a52: replace is-odd with is-even
670 -# 7dd9b2dc7f505508adbb3fdea36c308aad0de3ec: add package.hugo.json with is-number
671 -# bf55e8bb813a7f6cbe6f212bd7e1dd4fb44c79df: update README.md only
672 -# cc5188f671e1852f470df9fed52c7f93d1cab476: Add myworkspace with my-prime (in package.hugo.json)
673 -replace hugo.toml "324e3adae608ff8b6a52b4630975ffe652859f27" "40c59ae8595d8ff3f56b87fcf4ba3325649a9a52"
674 -
675 -hugo mod graph
676 -stderr 'WARN npm dependencies are out of sync'
677 -
678 -hugo mod npm pack
679 -cmp packages/hugoautogen/package.json golden2/packages/hugoautogen/package.json
680 -
681 -replace hugo.toml "40c59ae8595d8ff3f56b87fcf4ba3325649a9a52" "7dd9b2dc7f505508adbb3fdea36c308aad0de3ec"
682 -hugo mod npm pack
683 -cmp packages/hugoautogen/package.json golden3/packages/hugoautogen/package.json
684 -
685 -# This commit only updates README.md, no npm package updates.
686 -replace hugo.toml "7dd9b2dc7f505508adbb3fdea36c308aad0de3ec" "bf55e8bb813a7f6cbe6f212bd7e1dd4fb44c79df"
687 -hugo mod graph
688 -! stderr 'WARN'
689 -
690 -# Add myworkspace with my-prime (in package.hugo.json)
691 -replace hugo.toml "bf55e8bb813a7f6cbe6f212bd7e1dd4fb44c79df" "cc5188f671e1852f470df9fed52c7f93d1cab476"
692 -hugo mod npm pack
693 -cmp packages/hugoautogen/package.json golden4/packages/hugoautogen/package.json
694 -
695 -# usePackageJSON="auto" => usePackageJSON="never" in hugo.toml will effectively disable c's npm deps.
696 -replace hugo.toml "auto" "never"
697 -hugo mod graph
698 -# dependencies are out of sync
699 -stderr 'WARN'
700 -hugo mod npm pack
701 -cmp packages/hugoautogen/package.json golden5/packages/hugoautogen/package.json
702 -# Turn it back on using "always"
703 -replace hugo.toml "never" "always"
704 -hugo mod graph
705 -stderr 'WARN'
706 -hugo mod npm pack
707 -hugo mod graph
708 -! stderr 'WARN'
709 -cmp packages/hugoautogen/package.json golden4/packages/hugoautogen/package.json
710 -
711 -# Now test vendoring..
712 -hugo mod vendor
713 -# a ab c@cc5188f671e1852f470df9fed52c7f93d1cab476 d
714 -ls _vendor/github.com/gohugoio/hugoTestModsNPMNested/a
715 -stdout 'package.json'
716 -ls _vendor/github.com/gohugoio/hugoTestModsNPMNested/a/packages/aws1
717 -stdout 'package.json'
718 -
719 -ls _vendor/github.com/gohugoio/hugoTestModsNPMNested/c@cc5188f671e1852f470df9fed52c7f93d1cab476
720 -stdout 'package.hugo.json'
721 -# package.json is not needed when package.hugo.json exists.
722 -! stdout 'package.json'
723 -! exists _vendor/github.com/gohugoio/hugoTestModsNPMNested/ab/packages/hugoautogen
724 -
725 --- hugo.toml --
726 -baseURL = "https://example.org/"
727 -[module]
728 -[[module.imports]]
729 -path="github.com/gohugoio/hugoTestModsNPMNested/a"
730 -[[module.imports]]
731 -path="github.com/gohugoio/hugoTestModsNPMNested/c"
732 -version="324e3adae608ff8b6a52b4630975ffe652859f27"
733 -usePackageJSON="auto"
734 --- package.json --
735 -{
736 - "workspaces": [
737 - "packages/hugoautogen"
738 - ],
739 - "name": "npmpack",
740 - "version": "1.0.0",
741 - "dependencies": {
742 - "dedupe": "4.0.3"
743 - }
744 -}
745 --- golden1/packages/hugoautogen/hugo_packagemeta.json --
746 -{
747 - "sum": "259f33c1d93dcc01",
748 - "dependencySources": {
749 - "dependencies": {
750 - "count-days-in-month": "github.com/gohugoio/hugoTestModsNPMNested/a",
751 - "fast-cartesian": "github.com/gohugoio/hugoTestModsNPMNested/a",
752 - "is-odd": "github.com/gohugoio/hugoTestModsNPMNested/c",
753 - "is-sorted": "github.com/gohugoio/hugoTestModsNPMNested/a",
754 - "once": "github.com/gohugoio/hugoTestModsNPMNested/d",
755 - "pluralize": "github.com/gohugoio/hugoTestModsNPMNested/ab",
756 - "to-space-case": "github.com/gohugoio/hugoTestModsNPMNested/a"
757 - },
758 - "devDependencies": {
759 - "decamelize": "github.com/gohugoio/hugoTestModsNPMNested/a",
760 - "strip-ansi": "github.com/gohugoio/hugoTestModsNPMNested/a",
761 - "to-pascal-case": "github.com/gohugoio/hugoTestModsNPMNested/a"
762 - }
763 - }
764 -}
765 --- golden1/packages/hugoautogen/package.json --
766 -{
767 - "dependencies": {
768 - "count-days-in-month": "^1.0.0",
769 - "fast-cartesian": "9.0.0",
770 - "is-odd": "3.0.0",
771 - "is-sorted": "1.0.4",
772 - "once": "1.4.0",
773 - "pluralize": "8.0.0",
774 - "to-space-case": "0.1.3"
775 - },
776 - "devDependencies": {
777 - "decamelize": "6.0.0",
778 - "strip-ansi": "7.2.0",
779 - "to-pascal-case": "1.0.0"
780 - },
781 - "name": "hugoautogen",
782 - "private": true,
783 - "version": "0.1.0"
784 -}
785 --- golden1/package.json --
786 -{
787 - "workspaces": [
788 - "packages/hugoautogen"
789 - ],
790 - "name": "npmpack",
791 - "version": "1.0.0",
792 - "dependencies": {
793 - "dedupe": "4.0.3"
794 - }
795 -}
796 --- golden2/packages/hugoautogen/package.json --
797 -{
798 - "dependencies": {
799 - "count-days-in-month": "^1.0.0",
800 - "fast-cartesian": "9.0.0",
801 - "is-even": "1.0.0",
802 - "is-sorted": "1.0.4",
803 - "once": "1.4.0",
804 - "pluralize": "8.0.0",
805 - "to-space-case": "0.1.3"
806 - },
807 - "devDependencies": {
808 - "decamelize": "6.0.0",
809 - "strip-ansi": "7.2.0",
810 - "to-pascal-case": "1.0.0"
811 - },
812 - "name": "hugoautogen",
813 - "private": true,
814 - "version": "0.1.0"
815 -}
816 --- golden3/packages/hugoautogen/package.json --
817 -{
818 - "dependencies": {
819 - "count-days-in-month": "^1.0.0",
820 - "fast-cartesian": "9.0.0",
821 - "is-number": "7.0.0",
822 - "is-sorted": "1.0.4",
823 - "once": "1.4.0",
824 - "pluralize": "8.0.0",
825 - "to-space-case": "0.1.3"
826 - },
827 - "devDependencies": {
828 - "decamelize": "6.0.0",
829 - "strip-ansi": "7.2.0",
830 - "to-pascal-case": "1.0.0"
831 - },
832 - "name": "hugoautogen",
833 - "private": true,
834 - "version": "0.1.0"
835 -}
836 --- golden4/packages/hugoautogen/package.json --
837 -{
838 - "dependencies": {
839 - "count-days-in-month": "^1.0.0",
840 - "fast-cartesian": "9.0.0",
841 - "is-number": "7.0.0",
842 - "is-sorted": "1.0.4",
843 - "my-prime": "^1.0.1",
844 - "once": "1.4.0",
845 - "pluralize": "8.0.0",
846 - "to-space-case": "0.1.3"
847 - },
848 - "devDependencies": {
849 - "decamelize": "6.0.0",
850 - "strip-ansi": "7.2.0",
851 - "to-pascal-case": "1.0.0"
852 - },
853 - "name": "hugoautogen",
854 - "private": true,
855 - "version": "0.1.0"
856 -}
857 --- golden5/packages/hugoautogen/package.json --
858 -{
859 - "dependencies": {
860 - "count-days-in-month": "^1.0.0",
861 - "fast-cartesian": "9.0.0",
862 - "is-sorted": "1.0.4",
863 - "once": "1.4.0",
864 - "pluralize": "8.0.0",
865 - "to-space-case": "0.1.3"
866 - },
867 - "devDependencies": {
868 - "decamelize": "6.0.0",
869 - "strip-ansi": "7.2.0",
870 - "to-pascal-case": "1.0.0"
871 - },
872 - "name": "hugoautogen",
873 - "private": true,
874 - "version": "0.1.0"
875 -}
876 --- go.mod --
877 -module github.com/gohugoio/hugoTestModule
878 -go 1.20
879 diff --git a/testscripts/commands/mod_npm__moduleorder.txt b/testscripts/commands/mod_npm__moduleorder.txt
880 deleted file mode 100644
881 index 20228e5..0000000
882 --- a/testscripts/commands/mod_npm__moduleorder.txt
883 +++ /dev/null
884 @@ -1,68 +0,0 @@
885 -# Test mod npm pack with shuffled modules.
886 -
887 -hugo mod npm pack
888 -cmp packages/hugoautogen/package.json golden1/packages/hugoautogen/package.json
889 -cmp package.json golden1/package.json
890 -cmp packages/hugoautogen/hugo_packagemeta.json golden1/packages/hugoautogen/hugo_packagemeta.json
891 -
892 -hugo mod graph
893 -! stderr 'WARN npm dependencies are out of sync'
894 -
895 --- hugo.toml --
896 -baseURL = "https://example.org/"
897 -[module]
898 -[[module.imports]]
899 -path="github.com/gohugoio/hugoTestModsNPMNested/d"
900 -[[module.imports]]
901 -path="github.com/gohugoio/hugoTestModsNPMNested/a"
902 -
903 --- go.mod --
904 -module github.com/gohugoio/hugoTestModule
905 -go 1.20
906 -
907 --- golden1/package.json --
908 -{
909 - "workspaces": [
910 - "packages/hugoautogen"
911 - ]
912 -}
913 --- golden1/packages/hugoautogen/package.json --
914 -{
915 - "dependencies": {
916 - "count-days-in-month": "^1.0.0",
917 - "dedupe": "4.0.1",
918 - "fast-cartesian": "9.0.0",
919 - "is-sorted": "1.0.2",
920 - "once": "1.4.0",
921 - "pluralize": "8.0.0",
922 - "to-space-case": "0.1.3"
923 - },
924 - "devDependencies": {
925 - "decamelize": "6.0.0",
926 - "strip-ansi": "7.0.0",
927 - "to-pascal-case": "1.0.0"
928 - },
929 - "name": "hugoautogen",
930 - "private": true,
931 - "version": "0.1.0"
932 -}
933 --- golden1/packages/hugoautogen/hugo_packagemeta.json --
934 -{
935 - "sum": "98594123fa88aedf",
936 - "dependencySources": {
937 - "dependencies": {
938 - "count-days-in-month": "github.com/gohugoio/hugoTestModsNPMNested/a",
939 - "dedupe": "github.com/gohugoio/hugoTestModsNPMNested/ab",
940 - "fast-cartesian": "github.com/gohugoio/hugoTestModsNPMNested/a",
941 - "is-sorted": "github.com/gohugoio/hugoTestModsNPMNested/d",
942 - "once": "github.com/gohugoio/hugoTestModsNPMNested/d",
943 - "pluralize": "github.com/gohugoio/hugoTestModsNPMNested/ab",
944 - "to-space-case": "github.com/gohugoio/hugoTestModsNPMNested/a"
945 - },
946 - "devDependencies": {
947 - "decamelize": "github.com/gohugoio/hugoTestModsNPMNested/a",
948 - "strip-ansi": "github.com/gohugoio/hugoTestModsNPMNested/ab",
949 - "to-pascal-case": "github.com/gohugoio/hugoTestModsNPMNested/a"
950 - }
951 - }
952 -}
953 diff --git a/testscripts/commands/mod_npm_withexisting.txt b/testscripts/commands/mod_npm_withexisting.txt
954 deleted file mode 100644
955 index aa5a77b..0000000
956 --- a/testscripts/commands/mod_npm_withexisting.txt
957 +++ /dev/null
958 @@ -1,62 +0,0 @@
959 -# Test mod npm with existing package.json.
960 -
961 -# See https://github.com/gohugoio/hugo/issues/13465
962 -[windows] skip
963 -
964 -hugo mod npm pack
965 -cmp packages/hugoautogen/package.json golden/packages/hugoautogen/package.json
966 -cmp package.json golden/package.json
967 -exists packages/hugoautogen/hugo_packagemeta.json
968 -
969 --- hugo.toml --
970 -baseURL = "https://example.org/"
971 -[module]
972 -[[module.imports]]
973 -path="github.com/gohugoio/hugoTestModule2"
974 --- package.json --
975 -{
976 - "comments": {
977 - "foo": {
978 - "a": "b"
979 - }
980 - },
981 - "devDependencies": {
982 - "tailwindcss": "2.2.0"
983 - },
984 - "name": "mypackage",
985 - "version": "1.1.0"
986 -}
987 --- golden/packages/hugoautogen/package.json --
988 -{
989 - "dependencies": {
990 - "react-dom": "^16.13.1"
991 - },
992 - "devDependencies": {
993 - "@babel/cli": "7.8.4",
994 - "@babel/core": "7.9.0",
995 - "@babel/preset-env": "7.9.5",
996 - "postcss-cli": "7.1.0"
997 - },
998 - "name": "hugoautogen",
999 - "private": true,
1000 - "version": "0.1.0"
1001 -}
1002 --- golden/package.json --
1003 -{
1004 - "comments": {
1005 - "foo": {
1006 - "a": "b"
1007 - }
1008 - },
1009 - "devDependencies": {
1010 - "tailwindcss": "2.2.0"
1011 - },
1012 - "name": "mypackage",
1013 - "version": "1.1.0",
1014 - "workspaces": [
1015 - "packages/hugoautogen"
1016 - ]
1017 -}
1018 --- go.mod --
1019 -module github.com/gohugoio/hugoTestModule
1020 -go 1.20
1021 diff --git a/testscripts/commands/mod_vendor.txt b/testscripts/commands/mod_vendor.txt
1022 deleted file mode 100644
1023 index 53bb895..0000000
1024 --- a/testscripts/commands/mod_vendor.txt
1025 +++ /dev/null
1026 @@ -1,29 +0,0 @@
1027 -hugo mod vendor
1028 -cmp _vendor/modules.txt golden/vendor.txt
1029 -ls _vendor/github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml
1030 -stdout 'config.toml'
1031 -ls _vendor/github.com/gohugoio/hugo-mod-integrationtests/withhugotoml
1032 -stdout 'hugo.toml'
1033 -
1034 -
1035 -
1036 --- hugo.toml --
1037 -title = "Hugo Modules Test"
1038 -[module]
1039 -[[module.imports]]
1040 -path="github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml"
1041 -[[module.imports]]
1042 -path="github.com/gohugoio/hugo-mod-integrationtests/withhugotoml"
1043 --- go.mod --
1044 -go 1.19
1045 -
1046 -module github.com/gohugoio/testmod
1047 -
1048 -require (
1049 - github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml v1.0.0
1050 - github.com/gohugoio/hugo-mod-integrationtests/withhugotoml v1.0.0
1051 -)
1052 -
1053 --- golden/vendor.txt --
1054 -# github.com/gohugoio/hugo-mod-integrationtests/withconfigtoml v1.0.0
1055 -# github.com/gohugoio/hugo-mod-integrationtests/withhugotoml v1.0.0
1056 diff --git a/testscripts/commands/mod_vendor__versions.txt b/testscripts/commands/mod_vendor__versions.txt
1057 deleted file mode 100644
1058 index 49070b9..0000000
1059 --- a/testscripts/commands/mod_vendor__versions.txt
1060 +++ /dev/null
1061 @@ -1,100 +0,0 @@
1062 -hugo mod vendor
1063 -cmp _vendor/modules.txt golden/vendor.txt
1064 -lsr _vendor
1065 -stdout 'github.com/bep/hugo-mod-misc/dummy-content@%3C%3Dv0.1.0/config.toml'
1066 -stdout 'github.com/bep/hugo-mod-misc/[email protected]/config.toml'
1067 -stdout 'github.com/bep/hugo-mod-misc/[email protected]/content/blog/music/all-of-me/index.md'
1068 -stdout 'github.com/bep/hugo-mod-misc/[email protected]/content/blog/music/blue-bossa/index.md'
1069 -stdout 'github.com/bep/hugo-mod-misc/dummy-content@%3C%3Dv0.1.0/content/blog/music/all-of-me/index.md'
1070 -! stdout 'github.com/bep/hugo-mod-misc/dummy-content@%3C%3Dv0.1.0/content/blog/music/blue-bossa/index.md' # not mounted
1071 -
1072 -hugo mod graph
1073 -stdout 'project github.com/bep/hugo-mod-misc/[email protected]'
1074 -stdout 'project github.com/bep/hugo-mod-misc/[email protected]'
1075 -
1076 -hugo config mounts
1077 -[unix] cmpenv stdout golden/mounts.json
1078 -
1079 --- hugo.toml --
1080 -baseURL = "https://example.org"
1081 -[[module.imports]]
1082 -path = "github.com/bep/hugo-mod-misc/dummy-content"
1083 -version = "v0.2.0"
1084 -[[module.imports]]
1085 -path = "github.com/bep/hugo-mod-misc/dummy-content"
1086 -version = "<=v0.1.0"
1087 -[[module.imports.mounts]]
1088 -source = "content/blog/music/all-of-me"
1089 -target = "content/all"
1090 --- layouts/all.html --
1091 -Title: {{ .Title }}|Summary: {{ .Summary }}|
1092 -Deps: {{ range hugo.Deps}}{{ printf "%s@%s" .Path .Version }}|{{ end }}$
1093 -
1094 -
1095 --- golden/vendor.txt --
1096 -# github.com/bep/hugo-mod-misc/[email protected] v0.2.0
1097 -# github.com/bep/hugo-mod-misc/dummy-content@%3C%3Dv0.1.0 v0.1.0
1098 --- golden/mounts.json --
1099 -{
1100 - "path": "project",
1101 - "version": "",
1102 - "time": "0001-01-01T00:00:00Z",
1103 - "owner": "",
1104 - "dir": "$WORK",
1105 - "mounts": [
1106 - {
1107 - "source": "content",
1108 - "target": "content"
1109 - },
1110 - {
1111 - "source": "data",
1112 - "target": "data"
1113 - },
1114 - {
1115 - "source": "layouts",
1116 - "target": "layouts"
1117 - },
1118 - {
1119 - "source": "i18n",
1120 - "target": "i18n"
1121 - },
1122 - {
1123 - "source": "archetypes",
1124 - "target": "archetypes"
1125 - },
1126 - {
1127 - "source": "assets",
1128 - "target": "assets"
1129 - },
1130 - {
1131 - "source": "static",
1132 - "target": "static"
1133 - }
1134 - ]
1135 -}
1136 -{
1137 - "path": "github.com/bep/hugo-mod-misc/dummy-content",
1138 - "version": "v0.2.0",
1139 - "time": "0001-01-01T00:00:00Z",
1140 - "owner": "project",
1141 - "dir": "$WORK/_vendor/github.com/bep/hugo-mod-misc/[email protected]/",
1142 - "mounts": [
1143 - {
1144 - "source": "content",
1145 - "target": "content"
1146 - }
1147 - ]
1148 -}
1149 -{
1150 - "path": "github.com/bep/hugo-mod-misc/dummy-content",
1151 - "version": "v0.1.0",
1152 - "time": "0001-01-01T00:00:00Z",
1153 - "owner": "project",
1154 - "dir": "$WORK/_vendor/github.com/bep/hugo-mod-misc/dummy-content@%3C%3Dv0.1.0/",
1155 - "mounts": [
1156 - {
1157 - "source": "content/blog/music/all-of-me",
1158 - "target": "content/all"
1159 - }
1160 - ]
1161 -}
1162 diff --git a/tpl/css/build_integration_test.go b/tpl/css/build_integration_test.go
1163 index e72a1bb..9ffeac5 100644
1164 --- a/tpl/css/build_integration_test.go
1165 +++ b/tpl/css/build_integration_test.go
1166 @@ -607,6 +607,7 @@ SVG file.
1167 }
1168
1169 func TestCSSBuildBootstrapFromNPM(t *testing.T) {
1170 + t.Skip("This tests needs internet access")
1171 htesting.SkipSlowTestUnlessCI(t)
1172 t.Parallel()
1173
1174 diff --git a/tpl/tplimpl/shortcodes_integration_test.go b/tpl/tplimpl/shortcodes_integration_test.go
1175 index 4e7d19b..b04949f 100644
1176 --- a/tpl/tplimpl/shortcodes_integration_test.go
1177 +++ b/tpl/tplimpl/shortcodes_integration_test.go
1178 @@ -441,6 +441,7 @@ title: p1 (de)
1179 }
1180
1181 func TestVimeoShortcode(t *testing.T) {
1182 + t.Skip("This tests needs internet access")
1183 t.Parallel()
1184
1185 files := `
1186 @@ -485,6 +486,7 @@ Content: {{ .Content }}
1187 }
1188
1189 func TestXShortcodes(t *testing.T) {
1190 + t.Skip("This tests needs internet access")
1191 t.Parallel()
1192 htesting.SkipSlowTestUnlessCI(t)
1193