-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
5 changed files
with
111 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. | ||
|