Skip to content

Commit

Permalink
🤪
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkun61 committed Mar 29, 2024
1 parent a294f88 commit 3b28e60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion semantic-conventions/Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import Distribution.Simple (Args, defaultMainWithHooks, simpleUserHooks)
import qualified Distribution.Simple
import Distribution.Simple.Setup (BuildFlags)
import Distribution.Types.HookedBuildInfo (HookedBuildInfo, emptyHookedBuildInfo)
import System.Directory (createDirectoryIfMissing)
import System.Directory (createDirectoryIfMissing, getCurrentDirectory)
import System.FilePath ((</>))
import qualified System.FilePath.Glob as Glob
import System.IO (IOMode (WriteMode), hPutStrLn, hSetNewlineMode, noNewlineTranslation, stderr, withFile)
Expand Down Expand Up @@ -478,6 +478,7 @@ preBuild _ _ = do
targetDirectory :: FilePath
targetDirectory = "gen/OpenTelemetry/"
targetFile = targetDirectory </> "SemanticConventions.hs"
getCurrentDirectory Prelude.>>= Prelude.error . ("🤪 " ++)
yamlFiles <- Glob.globDir1 yamlPattern "."
when (List.null yamlFiles) $ fail "no YAML files found"
models <-
Expand Down

0 comments on commit 3b28e60

Please sign in to comment.