rules_dotnet icon indicating copy to clipboard operation
rules_dotnet copied to clipboard

.fsi files unsupported?

Open njlr opened this issue 5 months ago • 1 comments

It appears that .fsi files are unsupported?

load(
    "@rules_dotnet//dotnet:defs.bzl",
    "fsharp_library",
)

fsharp_library(
    name = "fsharp_signature_files",
    srcs = [
        "domain.fsi",
        "domain.fs",
    ],
    target_frameworks = ["netstandard2.1"],
    deps = [
        "@paket.example_deps//fsharp.core",
    ],
)

/home/njlr/Documents/rules_dotnet/examples/fsharp_signature_files/BUILD.bazel:6:15: in srcs attribute of fsharp_library rule //fsharp_signature_files:fsharp_signature_files: source file '//fsharp_signature_files:domain.fsi' is misplaced here (expected .fs)

Repro here: https://github.com/bazel-contrib/rules_dotnet/pull/499

njlr avatar Jul 29 '25 19:07 njlr

Yes, they are not supported currently. They would probably have to be a separate rule because they are not built the same way as a normal F# library/binary.

purkhusid avatar Jul 31 '25 11:07 purkhusid