Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elmPackages.elm-review: Init at 2.3.3 #105371

Merged
merged 1 commit into from Dec 3, 2020

Conversation

turboMaCk
Copy link
Member

@turboMaCk turboMaCk commented Nov 29, 2020

Elm-review is the most advanced linter for elm language. I think we might want to use it for nixos-search.

I had to temporarily generate node-env.nix file for elmPackages as we're waiting for nodePackages to get updated.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

"elm-xref",
"create-elm-app",
"elm-optimize-level-2"
"elm-analyse",
Copy link
Member Author

@turboMaCk turboMaCk Nov 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now follows .editorconfig rules

@domenkozar
Copy link
Member

@GrahamcOfBorg build elmPackages

nodeEnv = import ../../../node-packages/node-env.nix {
inherit (pkgs) stdenv python2 util-linux runCommand writeTextFile;
nodeEnv = import ./node-env.nix {
inherit (pkgs) stdenv python2 utillinux runCommand writeTextFile;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
inherit (pkgs) stdenv python2 utillinux runCommand writeTextFile;
inherit (pkgs) stdenv python2 util-linux runCommand writeTextFile;

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is generated by node2nix. I think this change comes from the new version. If we would revert this, we should also ditch node-env.nix I think.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@domenkozar what do you think about this? Should I edit generated files?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd keep it as generated and we can fix node2nix to do the right thing.

Copy link
Member Author

@turboMaCk turboMaCk Dec 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so in this PR I did not change any of generated file, just regenerated them. This suggestion is to change a file which was generated. This change in how node2nix generates file is also why we now need our own node-env.nix. I'm not sure if anything needs fixing because the newly generated files do work just fine. I think all we would need to avoid creating node-env.nix would be to regenerate nodePackages as well which I don't want to do to keep scope of this change small.

Furthermore I think it'll be better for node2nix maintainers if we would break the dependecy on their node-env.nix for a moment so they can do the transition to new format on their own terms without breaking elmPackages.

@SuperSandro2000
Copy link
Member

Result of nixpkgs-review pr 105371 run on x86_64-linux 1

5 packages built:
  • elmPackages.create-elm-app
  • elmPackages.elm-analyse
  • elmPackages.elm-language-server
  • elmPackages.elm-review
  • elmPackages.elm-upgrade

Copy link
Member

@garbas garbas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but I'll let @domenkozar do the review and merge.

@turboMaCk
Copy link
Member Author

I'll also open separate PR for marking aarch as bad platform for things that are failing there once this is merged.

@domenkozar domenkozar merged commit 9998527 into NixOS:master Dec 3, 2020
@turboMaCk turboMaCk deleted the elm-packegse/elm-review branch February 2, 2021 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants