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

unused: init at 0.2.1 #107077

Merged
merged 2 commits into from Dec 22, 2020
Merged

unused: init at 0.2.1 #107077

merged 2 commits into from Dec 22, 2020

Conversation

lrworth
Copy link
Contributor

@lrworth lrworth commented Dec 17, 2020

Motivation for this change

Add the unused tool.

Things done
  • 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.

Copy link
Contributor

@endgame endgame left a comment

Choose a reason for hiding this comment

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

Builds and runs on NixOS, too.

pkgs/development/tools/unused/default.nix Outdated Show resolved Hide resolved
pkgs/development/tools/unused/default.nix Outdated Show resolved Hide resolved
pkgs/development/tools/unused/default.nix Outdated Show resolved Hide resolved
@endgame
Copy link
Contributor

endgame commented Dec 17, 2020

Cool. I generally rebase and force-push, because I don't think nixos squashes PR commits in its repos. Hopefully someone with merge rights can merge it in after that.

@lrworth lrworth force-pushed the unused branch 3 times, most recently from 1f437e6 to 6193e15 Compare December 18, 2020 01:49
@lrworth
Copy link
Contributor Author

lrworth commented Dec 18, 2020

@joshuaclayton you might be interested in this.

@joshuaclayton
Copy link

@lrworth ah, neat! I just pushed a new commit in as of yesterday to better support non-UTF-8 tags files (this was an issue in the Haskell version as well: joshuaclayton/unused#72).

I'm going to cut a 0.2 release in the next few minutes (in case it's not too much trouble to include that rather than 0.1) since I'm guessing it may be a sticking point for folks.

@lrworth
Copy link
Contributor Author

lrworth commented Dec 18, 2020

Great! Let's wait until 0.2 then.

@joshuaclayton
Copy link

joshuaclayton commented Dec 18, 2020

@lrworth on second thought, I'm still seeing issues with mimalloc compiling on ubuntu correctly in GH actions: https://github.com/unused-code/unused/runs/1574360688?check_suite_focus=true

Until I work that out, I think we'll be on pause for a 0.2 release (mimalloc cuts execution time by 30%+ here, so I don't want to out-right remove it without investigating further).

I spoke too soon – I was able to cut 0.2.0, available here.

@lrworth lrworth changed the title unused: init at 0.1.0 unused: init at 0.2.0 Dec 18, 2020
@lrworth
Copy link
Contributor Author

lrworth commented Dec 18, 2020

Updated to 0.2.0, which also seems to have resolved the yaml problem and let us use rustPackages.

I'll bump promptly when and if unused-code/unused#25 is resolved.

@endgame
Copy link
Contributor

endgame commented Dec 18, 2020

Still builds and runs on NixOS with the new version

@ShamrockLee
Copy link
Contributor

ShamrockLee commented Dec 18, 2020

It is recommended by many that the changes made to maintainer-list.nix be put in a separate commit with a commit message "maintainer-list: add lrworth"

@marsam marsam mentioned this pull request Dec 19, 2020
10 tasks
@lrworth lrworth changed the title unused: init at 0.2.0 unused: init at 0.2.1 Dec 19, 2020
@SuperSandro2000
Copy link
Member

Result of nixpkgs-review pr 107077 run on x86_64-darwin 1

1 package built:
  • unused

@lrworth
Copy link
Contributor Author

lrworth commented Dec 21, 2020

Closed as there is no maintainer for this package.

@grahamc
Copy link
Member

grahamc commented Dec 22, 2020

@SuperSandro2000 those fields are optional on purpose, and we don't need to force contributors to fill them in if they don't want to. @lrworth can contribute this package as a maintainer, without filling them all in if they would like to.

@lrworth lrworth reopened this Dec 22, 2020
@lrworth
Copy link
Contributor Author

lrworth commented Dec 22, 2020

Thanks @grahamc. Let's try this again then?

@SuperSandro2000
Copy link
Member

@SuperSandro2000 those fields are optional on purpose, and we don't need to force contributors to fill them in if they don't want to. @lrworth can contribute this package as a maintainer, without filling them all in if they would like to.

Sorry about this. I just wanted to convince the author to add this informations. The information is tied to his commit anyway.

@peterhoeg peterhoeg merged commit 160ba18 into NixOS:master Dec 22, 2020
@joshuaclayton
Copy link

@lrworth @grahamc @endgame @SuperSandro2000 thanks for helping get this merged!

@joshuaclayton
Copy link

@lrworth I haven't used Nix yet (still on MacOS Homebrew) – if you have a few minutes, I'd very much appreciate a PR to unused highlighting how to install so others can take advantage of this as well.

@lrworth lrworth deleted the unused branch December 22, 2020 19:54
@lrworth
Copy link
Contributor Author

lrworth commented Dec 22, 2020

Nix instructions in README.md: unused-code/unused#26

@lasers lasers mentioned this pull request Jan 30, 2021
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

8 participants