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

[Bug]: Scratch build failing 0.19.9 - translations #5460

Closed
5 tasks done
dlukt opened this issue Feb 27, 2025 · 7 comments
Closed
5 tasks done

[Bug]: Scratch build failing 0.19.9 - translations #5460

dlukt opened this issue Feb 27, 2025 · 7 comments
Labels
bug Something isn't working

Comments

@dlukt
Copy link

dlukt commented Feb 27, 2025

Requirements

  • Is this a bug report? For questions or discussions use https://lemmy.ml/c/lemmy_support
  • Did you check to see if this issue already exists?
  • Is this only a single bug? Do not put multiple bugs in one issue.
  • Do you agree to follow the rules in our Code of Conduct?
  • Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.

Summary

...
   Compiling readonly v0.2.12
   Compiling email-encoding v0.3.0
   Compiling http-signature-normalization v0.7.0
   Compiling scoped-futures v0.1.3
   Compiling bcder v0.7.4
   Compiling unicode-width v0.1.13
   Compiling entities v1.0.1
   Compiling quoted_printable v0.5.0
   Compiling triomphe v0.1.11
   Compiling tagptr v0.2.0
   Compiling argparse v0.2.2
   Compiling downcast-rs v1.2.1
   Compiling email_address v0.2.4
   Compiling fastrand v2.1.0
   Compiling urlencoding v2.1.3
   Compiling markdown-it v0.6.1
   Compiling x509-certificate v0.23.1
   Compiling html2text v0.12.5
   Compiling diesel-async v0.4.1
   Compiling strum v0.26.3
   Compiling http-signature-normalization-reqwest v0.10.0
   Compiling enum-map v2.7.3
   Compiling enum_delegate v0.2.0
   Compiling markup5ever v0.11.0
   Compiling doku v0.21.1
error: failed to run custom build command for `lemmy_utils v0.19.9 (/home/goeppingen/lemmy/crates/utils)`

Caused by:
  process didn't exit successfully: `/home/goeppingen/lemmy/target/release/build/lemmy_utils-0f481523f8d2ea2a/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-changed=translations/email/en.json
  cargo:rerun-if-changed=translations/email/ko.json
  cargo:rerun-if-changed=translations/email/pt.json

  --- stderr
  Error: Parse(InvalidParameters { key: "notification_mentioned_by_body", missing: ["comment_link", "inbox_link"], unknown: [] })
warning: build failed, waiting for other jobs to finish...

Steps to Reproduce

git clone https://github.com/LemmyNet/lemmy.git --recursive
cd lemmy
git checkout 0.19.9
git submodule init
git submodule update --recursive --remote
cargo build --release --features embed-pictrs

Technical Details

Gentoo amd64

cargo --version
cargo 1.85.0 (d73d2caf9 2024-12-31)

Version

0.19.9

Lemmy Instance URL

No response

@dlukt dlukt added the bug Something isn't working label Feb 27, 2025
@dlukt
Copy link
Author

dlukt commented Feb 27, 2025

On my home computer

   Compiling tokio v1.40.0
   Compiling pin-project-internal v1.1.5
   Compiling lemmy_utils v0.19.9 (/home/darko/lemmy/crates/utils)
   Compiling zeroize v1.8.1
   Compiling darling v0.13.4
   Compiling enum-map v2.7.3
   Compiling doku-derive v0.21.1
   Compiling darling_macro v0.20.9
   Compiling i-love-jesus-macros v0.1.0
   Compiling futures-util v0.3.30
   Compiling typed-builder-macro v0.19.1
   Compiling smart-default v0.7.1
   Compiling der v0.7.9
   Compiling bcrypt v0.15.1
   Compiling derive-new v0.7.0
   Compiling diesel-derive-newtype v2.1.2
error: failed to run custom build command for `lemmy_utils v0.19.9 (/home/darko/lemmy/crates/utils)`

Caused by:
  process didn't exit successfully: `/home/darko/lemmy/target/release/build/lemmy_utils-0f481523f8d2ea2a/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-changed=translations/email/en.json

  --- stderr
  Error: Parse(InvalidParameters { key: "notification_private_message_body", missing: ["inbox_link"], unknown: [] })
warning: build failed, waiting for other jobs to finish...
cargo --version
cargo 1.85.0 (d73d2caf9 2024-12-31)

@dlukt
Copy link
Author

dlukt commented Feb 27, 2025

Actually the error output is always different messages, but all are for translations

@dlukt
Copy link
Author

dlukt commented Feb 27, 2025

#5432

The documentation is wrong.
It should be

git submodule update

not

git submodule update --recursive --remote

so

git clone https://github.com/LemmyNet/lemmy.git --recursive
cd lemmy
git checkout 0.19.9
git submodule init
git submodule update
cargo build --release --features embed-pictrs

@dlukt dlukt closed this as completed Feb 27, 2025
@Nutomic
Copy link
Member

Nutomic commented Feb 27, 2025

@dlukt Where in the documentation does it have the wrong update command? That should definitely be fixed.

@dessalines
Copy link
Member

LemmyNet/lemmy-docs#354

@dlukt
Copy link
Author

dlukt commented Feb 27, 2025

@dlukt Where in the documentation does it have the wrong update command? That should definitely be fixed.

https://join-lemmy.org/docs/administration/from_scratch.html
@Nutomic

@dessalines
Copy link
Member

I merged the fix above, so in a few hours that should get automatically updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants