diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-02-21 20:16:02 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-02-22 15:36:27 +0100 |
commit | 16406d9d77cb4861bba9df8ca39e7dadfe41eb45 (patch) | |
tree | f32a3921081e40a748613bd87eba7940d6b975db /testscripts | |
parent | e75784930dca9e367019ce498fd15076a63edb34 (diff) | |
download | hugo-16406d9d77cb4861bba9df8ca39e7dadfe41eb45.tar.gz hugo-16406d9d77cb4861bba9df8ca39e7dadfe41eb45.zip |
Fix regression on handling of overlapping file mounts
But note that the overlay file system is set up horizontally (project -> module1 -> module2), so I would not recommend too complex overlapping mount setups within the same module.
But this worked in v0.122.0, so we should fix it.
Fixes #12103
Diffstat (limited to 'testscripts')
-rw-r--r-- | testscripts/commands/hugo__static_composite.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testscripts/commands/hugo__static_composite.txt b/testscripts/commands/hugo__static_composite.txt new file mode 100644 index 000000000..bf73f6abb --- /dev/null +++ b/testscripts/commands/hugo__static_composite.txt @@ -0,0 +1,27 @@ +hugo +ls public/files +checkfile public/files/f1.txt +checkfile public/files/f2.txt +checkfile public/f3.txt + +-- hugo.toml -- +disableKinds = ["taxonomy", "term"] +[module] +[[module.mounts]] +source = "myfiles/f1.txt" +target = "static/files/f1.txt" +[[module.mounts]] +source = "f3.txt" +target = "static/f3.txt" +[[module.mounts]] +source = "static" +target = "static" +-- static/files/f2.txt -- +f2 +-- myfiles/f1.txt -- +f1 +-- f3.txt -- +f3 +-- layouts/home.html -- +Home. + |