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

codecrafters-cli: init at 34 #332505

Merged
merged 2 commits into from
Aug 11, 2024

Conversation

Builditluc
Copy link
Contributor

@Builditluc Builditluc commented Aug 5, 2024

Description of changes

The CodeCrafters CLI, codecrafters, is a command-line tool that allows you to run tests & view test results of the current stage from your local machine.

Link to the homepage: https://codecrafters.io/

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • 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/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 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.

Add a 👍 reaction to pull requests you find important.

Copy link
Member

@tomodachi94 tomodachi94 left a comment

Choose a reason for hiding this comment

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

We can update the commit hash automatically when updating the rest of the package by taking this approach.1

Also: Could you please format this using pkgs.nixfmt-rfc-style to fix this failed CI check?

Footnotes

  1. Here's some other examples of where this pattern has been used: https://github.com/search?q=repo%3ANixOS%2Fnixpkgs%20%24out%2FCOMMIT&type=code

pkgs/by-name/co/codecrafters-cli/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/co/codecrafters-cli/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/co/codecrafters-cli/package.nix Outdated Show resolved Hide resolved
@Builditluc
Copy link
Contributor Author

Also: Could you please format this using pkgs.nixfmt-rfc-style to fix this failed CI check?

I've formatted the package.nix file, but the updated maintainers list is not formatted. Wouldn't this cause merge conflicts for others if I modify the file through nixfmt?

Copy link
Member

@tomodachi94 tomodachi94 left a comment

Choose a reason for hiding this comment

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

Lgtm. Good sleuthing with the ldflags!

Yes, you were right, the maintainer list shouldn't be formatted (in this PR, at least).

maintainers/maintainer-list.nix Outdated Show resolved Hide resolved
Updates the email for builditluc and adds a GPG fingerprint
@Builditluc
Copy link
Contributor Author

@afh, I've just replaced the weird stuff with rm -rf and verified again that the package builds correctly. If you have nothing more to add, I think the PR would be ready to be merged

@afh
Copy link
Member

afh commented Aug 8, 2024

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

1 package built:
  • codecrafters-cli

@afh
Copy link
Member

afh commented Aug 8, 2024

Result of nixpkgs-review pr 332505 run on aarch64-darwin 1

1 package built:
  • codecrafters-cli

Copy link
Member

@afh afh left a comment

Choose a reason for hiding this comment

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

Thanks for addressing all the review feedback, @Builditluc, much appreciated 👍

@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-already-reviewed/2617/1892

Copy link
Member

@tomodachi94 tomodachi94 left a comment

Choose a reason for hiding this comment

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

Lgtm, thank you for addressing everything pointed out!

@adamcstephens adamcstephens merged commit 91831ee into NixOS:master Aug 11, 2024
27 of 29 checks passed
@Builditluc Builditluc deleted the crate-codecrafters-cli branch August 13, 2024 21:55
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.

5 participants