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

nixos/i2pd: refactor with freeformed submodule (RFC42) #225601

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

one-d-wide
Copy link
Contributor

@one-d-wide one-d-wide commented Apr 10, 2023

Description of changes

Fix #228182.

Refactor

  • Redundant option declaration replaced with free-formed one (as proposed in RFC42).

Add

  • String enumerator options in place of raw integer indexing
  • Systemd service hardening
  • Basic configure validation (only option names in i2pd.conf)
  • Runtime credentials passing
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Apr 10, 2023
@one-d-wide one-d-wide changed the title I2pd refactor freeform nixos/i2pd: refactor with freeformed submodule (RFC42) Apr 10, 2023
@ofborg ofborg bot added 8.has: clean-up 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1 labels Apr 10, 2023
@doronbehar
Copy link
Contributor

Merge conflicts.

@doronbehar
Copy link
Contributor

Hey @one-d-wide thanks again for working on this. Could you squash the last 2 commits onto your branch and then rebase to master? instead of merging master into your branch..

@one-d-wide one-d-wide marked this pull request as draft September 9, 2023 16:51
@one-d-wide one-d-wide force-pushed the i2pd-refactor-freeform branch from b8d88f4 to f65074d Compare September 9, 2023 16:53
@one-d-wide
Copy link
Contributor Author

Hey @one-d-wide thanks again for working on this. Could you squash the last 2 commits onto your branch and then rebase to master? instead of merging master into your branch..

Thanks. Is it in the correct state now?

@doronbehar
Copy link
Contributor

The last commit fix typos,... could be squashed to one of the other commits, but no big deal in the meantime. In general, here in Nixpkgs, we prefer that every time you update a PR after a review, force push the changes, and always make the commit history in the PR logical and concise.

Secondly, why did you mark it as a draft? I would like to invite a review from an experienced module author.

@doronbehar doronbehar added the 12. first-time contribution This PR is the author's first one; please be gentle! label Sep 9, 2023
@doronbehar
Copy link
Contributor

BTW I must say that for a 1st time contribution, this PR is of impressive quality!

@one-d-wide
Copy link
Contributor Author

Secondly, why did you mark it as a draft? I would like to invite a review from an experienced module author.

In a case I push the wrong thing to avoid mass-pinging of people, this is suggested in contributing.md. This PR is ready for review.

@one-d-wide one-d-wide marked this pull request as ready for review September 10, 2023 08:45
@doronbehar
Copy link
Contributor

Secondly, why did you mark it as a draft? I would like to invite a review from an experienced module author.

In a case I push the wrong thing to avoid mass-pinging of people, this is suggested in contributing.md. This PR is ready for review.

Very well. If you will consistently force push to the same branch and update the same files, and won't change the target branch, you shouldn't unnecessarily mass ping many code owners.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-in-distress/3604/69

@Atemu Atemu requested a review from infinisil September 17, 2023 21:58
@wegank wegank added 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 2.status: merge conflict This PR has merge conflicts with the target branch labels Mar 19, 2024
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Mar 20, 2024
@wegank wegank added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: merge conflict This PR has merge conflicts with the target branch 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: clean-up 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1 12. first-time contribution This PR is the author's first one; please be gentle!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

i2pd module options map to outdated configuration, has no extraConfig or configFile option
5 participants