types/model: fix tag case

This commit is contained in:
Michael Yang
2024-05-08 08:47:09 -07:00
parent 2a5302a1cf
commit 486a2c1d94
2 changed files with 19 additions and 7 deletions

View File

@@ -290,12 +290,14 @@ func (n Name) Filepath() string {
if !n.IsFullyQualified() {
panic("illegal attempt to get filepath of invalid name")
}
return strings.ToLower(filepath.Join(
n.Host,
n.Namespace,
n.Model,
return filepath.Join(
strings.ToLower(filepath.Join(
n.Host,
n.Namespace,
n.Model,
)),
n.Tag,
))
)
}
// LogValue returns a slog.Value that represents the name as a string.