You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #12190, but global assets are in subdirectory.
assets/
└── snippets/
├── a.txt
└── b.txt
{{ range resources.ByType "text" }}
{{ .Name }}
{{ end }}
Expected (v0.123.7) --> /snippets/a.txt (note that in v0.122.0 this returned snippets/a.txt -- no leading slash)
Actual (v0.123.8) --> a.txt
I believe the above is causing both of these to fail (resources are not published):
{{ with resources.ByType "text" }}
{{ with .Get "snippets/a.txt" }}
{{ .Publish }}
{{ end }}
{{ end }}
{{ with resources.Match "**" }}
{{ with .GetMatch "snippets/b.txt" }}
{{ .Publish }}
{{ end }}
{{ end }}
The text was updated successfully, but these errors were encountered:
jmooring
changed the title
resources.ByType and resources.Match have incorrect .Name
resources.ByType and resources.Match failing when used with resources.ByType and resources.Match
Mar 8, 2024
jmooring
changed the title
resources.ByType and resources.Match failing when used with resources.ByType and resources.Match
resources.Get and resources.GetMatch failing when used with resources.ByType and resources.Match
Mar 8, 2024
Worked (sort of) in v0.123.7. Fails in v0.123.8.
Related to #12190, but global assets are in subdirectory.
Expected (v0.123.7) -->
/snippets/a.txt
(note that in v0.122.0 this returnedsnippets/a.txt
-- no leading slash)Actual (v0.123.8) -->
a.txt
I believe the above is causing both of these to fail (resources are not published):
The text was updated successfully, but these errors were encountered: