-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
netbox: fix psycopg dependency #263168
netbox: fix psycopg dependency #263168
Conversation
netbox requires psycopg version 3, this version is packaged as psycopg.
psycopg2 | ||
psycopg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't this break netbox_3_5, which people could still want to migrate from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unsure, the netbox_3_5 tests don't evaluate as they are eol. I need to figure out how I can run them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xanderio you can run them with NIXPKGS_ALLOW_INSECURE=1 nix build --impure '.#nixosTests.netbox_3_5'
if you have flakes enabled.
Without flakes enabled, you can do NIXPKGS_ALLOW_INSECURE=1 nix-build -A 'nixosTests.netbox_3_5'
And the same for the migration test.
Fascinating and worrying both 3.5 and 3.6 tests pass, but when I apply these changes to a prod system netbox doesn't start.
|
Fresh horrors, great. :D |
This seems to be fixed in nixos 23.11 |
Description of changes
netbox requires psycopg version 3, this version is packaged as psycopg.
nixos tests are currently failing do to #254268 (comment). I've locally modified the tests to use postgresql 14 which result in them passing. Should I include this change in this PR?
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)