Skip to content

Commit

Permalink
error on no semantic conventions yamls
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkun61 committed Mar 29, 2024
1 parent 4ba2dc5 commit a294f88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions semantic-conventions/Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
module Main (main) where

import Control.Applicative (Alternative ((<|>)))
import Control.Monad (when)
import qualified Data.Aeson as Json
import qualified Data.Aeson.KeyMap as JsonMap
import qualified Data.Char as Char
Expand Down Expand Up @@ -478,6 +479,7 @@ preBuild _ _ = do
targetDirectory = "gen/OpenTelemetry/"
targetFile = targetDirectory </> "SemanticConventions.hs"
yamlFiles <- Glob.globDir1 yamlPattern "."
when (List.null yamlFiles) $ fail "no YAML files found"
models <-
for yamlFiles $ \yamlFile -> do
printLog $ "processing " ++ yamlFile
Expand Down

0 comments on commit a294f88

Please sign in to comment.