Skip to content

Exec returns empty result #28

Description

@OnurGumus

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions