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

postgresql: Fix variable spelling in NixOS module #51273

Merged
merged 1 commit into from Dec 1, 2018

Conversation

herrwiese
Copy link
Contributor

Current build of nixos-18.09-small (nixos-18.09.1473.c1acb5ce6d8) fails
with

error: undefined variable 'postgresqlPackage' at […]/nixos/modules/services/databases/postgresql.nix:251:38

The right variable name should be cfg.package; fix.

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • 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 nox --run "nox-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)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Current build of nixos-18.09-small (nixos-18.09.1473.c1acb5ce6d8) fails
with

error: undefined variable 'postgresqlPackage' at […]/nixos/modules/services/databases/postgresql.nix:251:38

The right variable name should be cfg.package; fix.
@markuskowa
Copy link
Member

@GrahamcOfBorg build nixosTests.postgresql

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: nixosTests.postgresql

Partial log (click to expand)

Cannot nix-instantiate `nixosTests.postgresql' because:
error: attribute 'nixosTests' in selection path 'nixosTests.postgresql' not found

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: nixosTests.postgresql

Partial log (click to expand)

Cannot nix-instantiate `nixosTests.postgresql' because:
error: attribute 'nixosTests' in selection path 'nixosTests.postgresql' not found

@GrahamcOfBorg
Copy link

No attempt on x86_64-linux (full log)

The following builds were skipped because they don't evaluate on x86_64-linux: nixosTests.postgresql

Partial log (click to expand)

Cannot nix-instantiate `nixosTests.postgresql' because:
error: attribute 'nixosTests' in selection path 'nixosTests.postgresql' not found

@markuskowa
Copy link
Member

@GrahamcOfBorg test postgresql

@GrahamcOfBorg
Copy link

Success on x86_64-linux

Attempted: tests.postgresql

No partial log is available.

@GrahamcOfBorg
Copy link

Success on aarch64-linux

Attempted: tests.postgresql

No partial log is available.

@samueldr
Copy link
Member

samueldr commented Dec 1, 2018

Thanks @herrwiese good first contribution, and good catch!

ref: 4169ce0

@samueldr samueldr merged commit 2e19ed4 into NixOS:release-18.09 Dec 1, 2018
@domenkozar
Copy link
Member

thanks!

@herrwiese herrwiese deleted the nixos-postgres-unknown-var branch May 2, 2019 20:41
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

5 participants