Under some conditions Exec returns empty result.
open FSharp.Data.LiteralProviders
// let [<Literal>] _ = Exec<"git", "status">.ExitCode
let [<Literal>] commit = Exec<"git", "rev-parse HEAD">.Output
printfn "Commit:: %s" commit
With this code I get empty string result, but when I comment in the first let then it works. It's puzzling me and can't repro in .fsx but happens in some projects.
Under some conditions Exec returns empty result.
With this code I get empty string result, but when I comment in the first
letthen it works. It's puzzling me and can't repro in .fsx but happens in some projects.