njlr
njlr
I have found that my complex Suave code can be quite deeply nested. To fix this, I've been sketching out some abstractions that might help to make code more linear....
Usually when authenticating, we care about who is authenticated! However, the current methods in `Authentication` support this only via context, which has some issues: - Lacks type-safety - Lacks null-safety...
Is there already a mechanism for serving files with the ETag header properly set? Given the cost of computing the ETag (likely a hash of the file) I think this...
I noticed much of the code-base uses `Choice` where `Result` would be more appropriate. Would this change be welcome? Happy to send a PR.
This would mimic `dotnet`. Current work-around is to add this to the target: ```starlark defines = [ "DEBUG", ], ```
For example in an `fsharp_binary`
I am trying to publish an `fsharp_binary` as a single file, equivalent to: ```bash dotnet publish -c Release --runtime linux-x64 --self-contained -p:PublishSingleFile=true ``` Is this possible? It appears that this...
I was wondering if anyone has figured out how to depend on native libraries in a `rules_dotnet` target? ```starlark load("@rules_cc//cc:defs.bzl", "cc_library") load("@rules_dotnet//dotnet:defs.bzl", "fsharp_binary") cc_library( name = "math", srcs = [...
Full repro here: https://github.com/njlr/rules-dotnet-publish-docker ```starlark load("@io_bazel_rules_docker//container:container.bzl", "container_image") load("@rules_pkg//:pkg.bzl", "pkg_tar") load("@rules_dotnet//dotnet:defs.bzl", "fsharp_binary", "publish_binary") fsharp_binary( name = "app", srcs = [ "Program.fs", ], target_frameworks = [ "net6.0", ], deps = [ "@paket.main//microsoft.netcore.app.ref",...
I am trying to maintain MS Build and rules_dotnet targets together. The goal is to have both work on the same code. Things are complicated by the fact that my...