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

azure-cli-extensions.rdbms-connect: init at 1.0.6 #317841

Merged
merged 4 commits into from
Jun 18, 2024

Conversation

obreitwi
Copy link
Contributor

@obreitwi obreitwi commented Jun 6, 2024

Description of changes

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.

@katexochen
Copy link
Contributor

Why the reformatting?

@obreitwi
Copy link
Contributor Author

Why the reformatting?

Was told in a different PR that nixpkgs is in the process of adapting a new linting style.

Hence I did a reformat beforehand for any file I touched. But, if there are efforts to reformat at once, I can also drop the commit.

Still new to nixpkgs and getting used to its customs.

@obreitwi obreitwi force-pushed the ojb/azure-cli/add_rdbms-connect branch from c06c1b7 to d58d96f Compare June 15, 2024 20:31
@ofborg ofborg bot requested a review from jonringer June 15, 2024 21:00
@katexochen
Copy link
Contributor

Why the reformatting?

Was told in a different PR that nixpkgs is in the process of adapting a new linting style.

Hence I did a reformat beforehand for any file I touched. But, if there are efforts to reformat at once, I can also drop the commit.

Still new to nixpkgs and getting used to its customs.

Such efforts with huge impact are always a bit of pain in nixpkgs. I asked the formatting team before but couldn't get a clear answer to whether individual packages should be formatted or not. I think many maintainers heard of the upcoming change an are just impatient. Thing is reformatting leads to merge conflicts with other PRs.

@katexochen
Copy link
Contributor

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

2 packages built:
  • azure-cli-extensions.rdbms-connect
  • azure-cli-extensions.rdbms-connect.dist

@obreitwi
Copy link
Contributor Author

obreitwi commented Jun 16, 2024

[...] Thing is reformatting leads to merge conflicts with other PRs.

Yeah, dropped the reformatting-commit when I rebased onto recently merged changes. 👌

Copy link
Contributor

@katexochen katexochen left a comment

Choose a reason for hiding this comment

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

I've build the cli with the extension, built successfully and show the expected command in the help.

pkgs/tools/admin/azure-cli/extensions-manual.nix Outdated Show resolved Hide resolved
pkgs/tools/admin/azure-cli/default.nix Show resolved Hide resolved
@katexochen
Copy link
Contributor

Regarding the commit messages: Could you put the maintainers: add obreitwi commit first? So you don't need a separate commit and can squash chore: add obreitwi as maintainer into azure-extensions.rdbms-connect: init at 1.0.6.
fix: propagate build inputs of extensions should be be azure-cli: propagate build inputs of extensions.

@obreitwi obreitwi force-pushed the ojb/azure-cli/add_rdbms-connect branch from 316e023 to a0f2016 Compare June 16, 2024 19:55
@obreitwi
Copy link
Contributor Author

Adjusted 👍

katexochen and others added 3 commits June 17, 2024 07:51
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
Signed-off-by: Oliver Breitwieser <oliver@breitwieser.eu>
Signed-off-by: Oliver Breitwieser <oliver@breitwieser.eu>
@katexochen katexochen force-pushed the ojb/azure-cli/add_rdbms-connect branch from a0f2016 to 4e798ba Compare June 17, 2024 06:15
@katexochen
Copy link
Contributor

@obreitwi Sorry, had to make some more adjustments.

  • I've added a commit allowing to set meta.maintainers on the extensions. When asking you to add yourself as maintainer, I meant to the extension, not the whole azure-cli package, assuming that was possible, but it wasn't.
  • I've moved your entry as maintainer over to the extension (now that this is possible).
  • Fixed the formatting, using nixpkgs-fmt for now.
  • I've scoped the with python3Packages; to a list of only the Python packages, and moved the other external dependency into a separate list. This is just for precaution and style, variables escaping a scope are discouraged (someone could add a mycli package to python packages and the meaning would change).

Thanks for the contribution and sorry for the back and forth. This is the first time someone adds an extension.

@obreitwi
Copy link
Contributor Author

Thanks for the contribution and sorry for the back and forth. This is the first time someone adds an extension.

No problem, thank you for the feedback; always happy to learn 👍

@katexochen katexochen merged commit 9662a2e into NixOS:master Jun 18, 2024
25 checks passed
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.

2 participants