Skip to content

Unexpose config headers (low hanging fruit only)#12773

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
roberth:config-h-low-hanging-fruit
Mar 28, 2025
Merged

Unexpose config headers (low hanging fruit only)#12773
Ericson2314 merged 1 commit intoNixOS:masterfrom
roberth:config-h-low-hanging-fruit

Conversation

@roberth
Copy link
Member

@roberth roberth commented Mar 28, 2025

  • Some headers were completely redundant and have been removed.
  • Other headers have been turned private.
  • Unnecessary meson.build code has been removed.
  • libutil-tests now has a private config header, where previously it had none. This removes the need to expose a package version macro publicly.

I've left a few comments about usage as a public header. It doesn't seem like all that many places.

Motivation

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

- Some headers were completely redundant and have been removed.
- Other headers have been turned private.
- Unnecessary meson.build code has been removed.
- libutil-tests now has a private config header, where previously
  it had none. This removes the need to expose a package version
  macro publicly.
@github-actions github-actions bot added new-cli Relating to the "nix" command with-tests Issues related to testing. PRs with tests have some priority c api Nix as a C library with a stable interface labels Mar 28, 2025
Copy link
Member

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

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

Fantastic!

@Ericson2314 Ericson2314 merged commit c36a9b8 into NixOS:master Mar 28, 2025
12 checks passed
mergify bot added a commit that referenced this pull request Mar 28, 2025
…2773

Unexpose config headers (low hanging fruit only) (backport #12773)
@Ericson2314 Ericson2314 added the backport 2.28-maintenance Automatically creates a PR against the branch label Mar 31, 2025
mergify bot added a commit that referenced this pull request Mar 31, 2025
…2773

Unexpose config headers (low hanging fruit only) (backport #12773)
@nixos-discourse
Copy link

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

https://discourse.nixos.org/t/nix-2-28-0-released/62660/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 2.28-maintenance Automatically creates a PR against the branch c api Nix as a C library with a stable interface new-cli Relating to the "nix" command with-tests Issues related to testing. PRs with tests have some priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants