vrutkovs / masto-thread-renderer

Render Mastodon thread as a web page
https://thread.choomba.one
Apache License 2.0
55 stars 3 forks source link

Container image build error with current version #12

Closed jwildeboer closed 3 months ago

jwildeboer commented 3 months ago

Running podman build -t mtr4 . results in build error:

error: failed to run custom build command for `masto-thread-renderer v0.1.0 (/code)`

Caused by:
  process didn't exit successfully: `/code/target/release/build/masto-thread-renderer-3266e2ee68a7c127/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=build.rs
  cargo:rerun-if-changed=public/

  added 122 packages, and audited 123 packages in 6s

  17 packages are looking for funding
    run `npm fund` for details

  11 vulnerabilities (4 moderate, 6 high, 1 critical)

  To address all issues, run:
    npm audit fix

  Run `npm audit` for details.

  > public@1.0.0 css
  > npx tailwindcss-cli@latest build ./css/tailwind.css -o ./css/style.css --minify

  --- stderr
  [deprecation] Running tailwindcss without -i, please provide an input file.
  Browserslist: caniuse-lite is outdated. Please run:
    npx browserslist@latest --update-db
    Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating

  Done in 8777ms.
  thread 'main' panicked at build.rs:25:10:
  called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
Error: building at STEP "RUN cargo build -r": while running runtime: exit status 101
jwildeboer commented 3 months ago

Seems to be fixed, had a successful build just now after a new git pulland am only getting

   Compiling base_url v1.1.0
warning: variants `NotFound` and `BadRequest` are never constructed
  --> src/errors.rs:12:5
   |
9  | pub enum RenderError {
   |          ----------- variants in this enum
...
12 |     NotFound(String),
   |     ^^^^^^^^
13 |
14 |     BadRequest(String),
   |     ^^^^^^^^^^
   |
   = note: `RenderError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
   = note: `#[warn(dead_code)]` on by default

warning: `masto-thread-renderer` (bin "masto-thread-renderer") generated 1 warning
    Finished `release` profile [optimized] target(s) in 2m 26s

which is just a warning, so I guess it's fine :) Closing.

vrutkovs commented 3 months ago

Yeah, my fault, it was fixed in 694f813a006d858e15ff138381ccb625a1735f70 (build.rs needs to run git-core to store git commit)

warning: variants NotFound and BadRequest are never constructed

yes, this is a warning not affecting the build