-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
mastodon: 4.2.13 -> 4.3.0 #337545
mastodon: 4.2.13 -> 4.3.0 #337545
Conversation
3ac888c
to
b227da2
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.
Looks good so far. The first commit is missing a link to the changelog (please put that also in the PR description) and the two commits would need to be squashed, as it wouldn't make sense to apply/revert them individually, afait.
b227da2
to
1e1b0e9
Compare
Will close #277697 |
bin/rails db:encryption:init | grep --only-matching "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=[^ ]\+" | sed 's/^ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=//' > /var/lib/mastodon/secrets/active-record-encryption-deterministic-key | ||
fi | ||
|
||
if ! test -f /var/lib/mastodon/secrets/active-record-encryption-key-derivation-salt; then | ||
mkdir -p /var/lib/mastodon/secrets | ||
bin/rails db:encryption:init | grep --only-matching "ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=[^ ]\+" | sed 's/^ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=//' > /var/lib/mastodon/secrets/active-record-encryption-key-derivation-salt | ||
fi | ||
|
||
if ! test -f /var/lib/mastodon/secrets/active-record-encryption-primary-key; then | ||
mkdir -p /var/lib/mastodon/secrets | ||
bin/rails db:encryption:init | grep --only-matching "ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=[^ ]\+" | sed 's/^ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=//' > /var/lib/mastodon/secrets/active-record-encryption-deterministic-key |
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.
Is it safe to run this as three separate invocations?
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.
Yeah, the keys are independent of each other.
I haven't finished this piece of code yet.
The precompiled bootsnap code requires write access, me need to do it differently:
|
How about we set |
Moved to |
ccf4b4e
to
240d739
Compare
Everything seems to be working :) |
240d739
to
1ecbd26
Compare
b852c65
to
237b0f8
Compare
Update to 4.3.0-rc.1. |
237b0f8
to
17e2ccb
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.
Probably a bigger topic for another PR but can't we put all the secrets into one file read by EnviromentFile?
I think the current option is easier to handle with scripts. |
269b1a5
to
05f12f0
Compare
This comment was marked as resolved.
This comment was marked as resolved.
pkgs/servers/mastodon/yarn.nix
Outdated
hash, | ||
}: | ||
stdenvNoCC.mkDerivation { | ||
name = "yarn-deps"; |
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.
name = "yarn-deps"; | |
pname = "yarn-deps"; | |
inherit version; |
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.
error:
… while calling the 'derivationStrict' builtin
at <nix/derivation-internal.nix>:34:12:
33|
34| strict = derivationStrict drvAttrs;
| ^
35|
… while evaluating derivation 'mastodon-4.3.0'
whose name attribute is located at /home/lafiel/works/src-nix/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:336:7
… while evaluating attribute 'mastodonModules' of derivation 'mastodon-4.3.0'
at /home/user/works/src-nix/nixpkgs/pkgs/servers/mastodon/default.nix:26:3:
25|
26| mastodonModules = stdenv.mkDerivation {
| ^
27| pname = "${pname}-modules";
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: undefined variable 'version'
at /home/user/works/src-nix/nixpkgs/pkgs/servers/mastodon/yarn.nix:10:11:
9| pname = "yarn-deps";
10| inherit version;
| ^
11| nativeBuildInputs = [
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.
We also need to add it to the inputs here and inherit it.
This comment was marked as off-topic.
This comment was marked as off-topic.
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.
Otherwise I deployed this to my instance without any problems other than the yarn-berry issue mentioned above.
79a85f3
to
a61d406
Compare
51392ef
to
36a83a3
Compare
Tested by 2 maintainers and CI. |
Description of changes
Updata package to version 4.3.0.
Changelog: https://github.com/mastodon/mastodon/releases/tag/v4.3.0-beta.1
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/
)Add a 👍 reaction to pull requests you find important.