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

humioctl: init at 0.25.0 #93839

Merged
merged 2 commits into from Jul 30, 2020
Merged

humioctl: init at 0.25.0 #93839

merged 2 commits into from Jul 30, 2020

Conversation

lucperkins
Copy link
Contributor

@lucperkins lucperkins commented Jul 25, 2020

Motivation for this change

This PR adds the CLI for Humio, humioctl, to nixpkgs.

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.

@lucperkins
Copy link
Contributor Author

lucperkins commented Jul 29, 2020

@kalbasit Any chance I can get a +1 on this? 😄

Copy link
Member

@kalbasit kalbasit left a comment

Choose a reason for hiding this comment

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

Please squash all the commits regarding humioctl into one: humioctl: init at 0.25.0

github = "lucperkins";
githubId = 1523104;
name = "Luc Perkins";
};
Copy link
Member

Choose a reason for hiding this comment

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

This should be in a separate commit:

maintainers: add lucperkins

Comment on lines 3 to 7
let
version = "0.25.0";
sha256 = "1x8354m410nf9g167v0i1c77s5w2by7smdlyjwl89ixgdjw04ay3";
in buildGoModule {
Copy link
Member

Choose a reason for hiding this comment

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

Please inline these, there's no point to define these as local variables. You'll have to use rec in order to define and use the version in the same derivation FYI.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like having these at the top so that it's immediately clear which variables need to be updated for each release. Furthermore, I've come to see rec as an anti-pattern to be avoided when possible. I have, however, made the other suggested changes.

pname = "humioctl";
version = version;

goPackagePath = "github.com/humio/cli";
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
goPackagePath = "github.com/humio/cli";

This is not used by buildGoModule.

sha256 = sha256;
};

subPackages = ["."];
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
subPackages = ["."];

I don't believe that you need this, but I could be wrong.

@kalbasit
Copy link
Member

/marvin opt-in
/status awaiting_changes

@ofborg ofborg bot requested a review from kalbasit July 29, 2020 21:19
@kalbasit
Copy link
Member

@GrahamcOfBorg build humioctl

@kalbasit kalbasit merged commit eaca8a7 into NixOS:master Jul 30, 2020
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

2 participants