-
-
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
pds: init at 0.4.74, nixos/pds: init #350645
base: master
Are you sure you want to change the base?
Conversation
f315d95
to
6afa70f
Compare
Upstream uses PNPM, why not use the existing PNPM tooling to generate the package? That means then there's no need to store an additional lockfile in-tree. See https://nixos.org/manual/nixpkgs/stable/#javascript-pnpm for how to use nixpkgs' pnpm tooling. Edit: I see your comment. Let me see if I can improve that for the pnpm tooling. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/4786 |
Upstream has updated to 0.4.67, you might want to consider updating. |
6afa70f
to
0b35498
Compare
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.
Small changes
Managed to successfully deploy it to my server :) |
0b35498
to
4065add
Compare
Yeah, I didn't bother packaging the admin scripts because the main one just fetches scripts for subcommands and they all have wrong shebang. Probably upstream should be fixed to use Edit: opened a PR upstream bluesky-social/pds#121 |
You should also be able to run the |
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.
Nice work on the service, found a few nits though
Also, having looked into the |
Not really. It'll fix the main script but all it's doing is download subsequent ones that will still fail because they're not patched https://github.com/bluesky-social/pds/blob/main/pdsadmin.sh#L22-L30 Other way would be to patch the main script to use store path instead of downloading it but I wasn't sure if that's not too much change. But maybe that's a good idea to keep them locked to pds version |
yeah I'd say vendor the scripts, you could even make a new pdsadmin script in-tree and replace the one in the repo with it if you want. Removing what's essentially |
ac7f4dc
to
2d67d86
Compare
Hm
on my server |
913a3a8
to
8cabcfb
Compare
We should be fine to merge now, bumped to 0.4.74 and use |
I guess release notes should go to 25.05 now though, how do I rebase without causing a mass ping? |
cc12960
to
bf43938
Compare
Running nixpkgs-review https://github.com/lucasew/nixcfg/actions/runs/12240180757/job/34142372650 |
|
bf43938
to
b7516fe
Compare
Seems like there is a conflict https://github.com/lucasew/nixcfg/actions/runs/12376092699/job/34542404095 |
b7516fe
to
a9dd238
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-already-reviewed/2617/2158 |
DUMMY_PDS_ENV_FILE="$(mktemp)" | ||
trap 'rm -f "$DUMMY_PDS_ENV_FILE"' EXIT |
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.
Why do we need a temporary file?
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.
Cause the script tries to source
it and it almost always does not exist (the default is /pds/pds.env
which looks docker-ish) but even if it does we still want to use our variables instead
https://github.com/bluesky-social/pds/blob/main/pdsadmin/account.sh#L6-L7
1387952
to
3ff967c
Compare
|
I don't even have the |
@ofborg eval |
3ff967c
to
9e2f53f
Compare
|
Things done
Self hosted server for https://bsky.social/
Closes #357466
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/
)Add a 👍 reaction to pull requests you find important.