diff --git a/lang/go/utils/parser/main.go b/lang/go/utils/parser/main.go index a6e4d9d..5190831 100644 --- a/lang/go/utils/parser/main.go +++ b/lang/go/utils/parser/main.go @@ -258,6 +258,8 @@ func main() { for _, pattern := range pkg.EmbedPatterns { matchedFiles := []string{} + storePattern := pattern + // TODO: proper matching if strings.HasPrefix(pattern, "all:") { pattern = pattern[4:] @@ -293,7 +295,7 @@ func main() { split = append(split, []string{match[len(dir)+1:], dirname, filepath.Base(match)}) } - out.Embeds[pattern] = split + out.Embeds[storePattern] = split } outfiles[dir] = out