testscripts/commands/mod_tidy.txt
raw| 1 | # Test hugo mod tidy. |
| 2 | |
| 3 | hugo mod tidy |
| 4 | |
| 5 | cmp go.mod golden/go.mod.cleaned |
| 6 | |
| 7 | -- hugo.toml -- |
| 8 | title = "Hugo Modules Test" |
| 9 | -- go.mod -- |
| 10 | go 1.19 |
| 11 | |
| 12 | require github.com/bep/empty-hugo-module v1.0.0 |
| 13 | |
| 14 | tool ( |
| 15 | github.com/gohugoio/hugo |
| 16 | ) |
| 17 | |
| 18 | module github.com/gohugoio/testmod |
| 19 | -- golden/go.mod.cleaned -- |
| 20 | go 1.19 |
| 21 | |
| 22 | |
| 23 | tool ( |
| 24 | github.com/gohugoio/hugo |
| 25 | ) |
| 26 | |
| 27 | module github.com/gohugoio/testmod |