Skip to content

azure-cli: move to by-name, nixfmt#325950

Merged
katexochen merged 3 commits into
NixOS:masterfrom
superherointj:azure-cli-refactor
Jul 10, 2024
Merged

azure-cli: move to by-name, nixfmt#325950
katexochen merged 3 commits into
NixOS:masterfrom
superherointj:azure-cli-refactor

Conversation

@superherointj

Copy link
Copy Markdown
Contributor

azure-cli: move to by-name, nixfmt

  • move from top-level to by-name
  • run nixfmt on nix files (but not on automated file): extensions-manual.nix, package.nix, python-packages.nix
    I have not included extensions-generated.nix at this point in time.

Goal here is minimalist, to just establish a minimal base for a subsequent refactor.

CC @katexochen @obreitwi

@ofborg ofborg Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jul 9, 2024
@katexochen

This comment was marked as resolved.

@emilazy

emilazy commented Jul 10, 2024

Copy link
Copy Markdown
Member

FWIW: The treewide format PR won’t touch files that have had open PRs in the past while, and will enforce formatting changed files on every new PR. So it wouldn’t reformat this file now, and it would actually enforce doing what @superherointj did here. The message you quoted was in the context of whether to hold off on doing mass reformats before the formatter exactly matches the RFC formatting guidelines, as an argument for reformatting as much of the tree ASAP as possible; see e.g. #322537 (comment). There’s already been a lot of small‐scale formatting and I’m not sure it makes sense to add every single commit to .git-blame-ignore-revs. That said, it might be best to any include any further refactoring in this PR rather than touching the files just for mechanical changes?

@katexochen

Copy link
Copy Markdown
Member

I’m not sure it makes sense to add every single commit to .git-blame-ignore-revs

@emilazy I really think we should add it, git blame gives a lot of helpful info for packages of this size.

@emilazy

emilazy commented Jul 10, 2024

Copy link
Copy Markdown
Member

Ah, I missed just how big this is :) It may be a good idea, then. Though I wonder how well git blame works even then with the combination of a move and big reformat; .git-blame-ignore-revs isn’t perfect in my experience.

@superherointj

Copy link
Copy Markdown
Contributor Author

The repo will be formatted anyway. Which can cause breakages, for example, update scripts (#310700).
We are better knowing how things are actually going to be.

I will add the commit to .git-blame-ignore-revs then.

@katexochen katexochen merged commit 91e135a into NixOS:master Jul 10, 2024
@superherointj superherointj deleted the azure-cli-refactor branch July 10, 2024 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants