Skip to content

nuget-to-nix: Generated file not formatted #358025

Description

@UlyssesZh

Describe the bug

The file generated by nuget-to-nix is not formatted. This leads to an error when a generated file is included in a PR and checked by the nixfmt-check step in GitHub Actions.

Some of the ideas that people proposed:

  • Modify nuget-to-nix to make the generated file formatted;
  • Exempt generated files from nixfmt-check;
  • Generate JSON (or alike) instead of Nix.

For details of the pros and cons of those approaches, read the discussions below here and in #325053.

For people who are packaging dotnet applications and meet with nixfmt-check failing: before a long-term solution is decided, temporarily we just merge PR with the check failing anyway (#360598 (comment)). There is no need to run nixfmt in the updater script.

Notify maintainers

@NixOS/dotnet


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions