Skip to content

the documentation of nix_setting_get requires calling nix_libutil_init, which achieves nothing #10790

Open
@prednaz

Description

Problem

the documentation of nix_setting_get currently contains "This function requires nix_libutil_init() to be called". but it is nix_libstore_init that calls loadConfFile and populates the globalConfig, which nix_setting_get reads from. nix_libutil_init only improves error messages in a certain case and calls sodium_init.

Proposal

either

  1. calling loadConfFile should move into initLibUtil or
  2. the documentation of the documentation of nix_setting_get should require calling nix_libstore_init and nix_setting_get and nix_setting_set then should probably move into libstore.

Checklist

Priorities

Add 👍 to issues you find important.

Metadata

Assignees

No one assigned

    Labels

    c apiNix as a C library with a stable interfacedocumentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions