* Building tvix on openSUSE: missing README in tvix/vendor/tower-otel-http-metrics-0.11.0/src/../
@ 2025-03-22 8:40 Johannes Kastl
2025-08-05 18:10 ` sterni
0 siblings, 1 reply; 2+ messages in thread
From: Johannes Kastl @ 2025-03-22 8:40 UTC (permalink / raw)
To: depot
Dear tvix maintainers,
out of curiosity I tried to create a package for tvix for openSUSE. I
found no tags or versions, so I used the latest commit and went from
there.
I got a package that starts building, but am now stuck with the
following error:
> [ 348s] Compiling tower-otel-http-metrics v0.11.0
> [ 348s] error: couldn't read `/home/abuild/rpmbuild/BUILD/tvix-0.0.1_1742309285.9898a758b-build/tvix-0.0.1~1742309285.9898a758b/tvix/vendor/tower-otel-http-metrics-0.11.0/src/../README.md`: No such file or directory (os error 2)
> [ 348s] --> /home/abuild/rpmbuild/BUILD/tvix-0.0.1_1742309285.9898a758b-build/tvix-0.0.1~1742309285.9898a758b/tvix/vendor/tower-otel-http-metrics-0.11.0/src/lib.rs:1:10
> [ 348s] |
> [ 348s] 1 | #![doc = include_str!("../README.md")]
> [ 348s] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> [ 348s] |
As I am not using nix for the build and the build has to happen
completely offline, I have prepared all rust dependencies upfront (as
is usual for rust packages on openSUSE). There is a directory for
tower-otel-http-metrics-0.11.0 in the vendor tarball (which is
extracted into the tvix subfolder), but it does not contain a README:
> $ tar tvf vendor.tar.zst |grep tower-otel
> -rw-r--r-- 0/0 328 1970-01-01 00:00 vendor/tower-otel-http-metrics-0.11.0/.cargo-checksum.json
> -rw-r--r-- 0/0 9954 1970-01-01 00:00 vendor/tower-otel-http-metrics-0.11.0/Cargo.lock
> -rw-r--r-- 0/0 1763 1970-01-01 00:00 vendor/tower-otel-http-metrics-0.11.0/Cargo.toml
> -rw-r--r-- 0/0 10707 1970-01-01 00:00 vendor/tower-otel-http-metrics-0.11.0/src/lib.rs
Is this a known issue? Am I missing some flags for "cargo build"?
Kind Regards,
Johannes
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Building tvix on openSUSE: missing README in tvix/vendor/tower-otel-http-metrics-0.11.0/src/../
2025-03-22 8:40 Building tvix on openSUSE: missing README in tvix/vendor/tower-otel-http-metrics-0.11.0/src/../ Johannes Kastl
@ 2025-08-05 18:10 ` sterni
0 siblings, 0 replies; 2+ messages in thread
From: sterni @ 2025-08-05 18:10 UTC (permalink / raw)
To: Johannes Kastl, depot
On 3/22/25 09:40, Johannes Kastl wrote:
> Is this a known issue? Am I missing some flags for "cargo build"?
I'm not sure whether this is caused by a packaging bug in
tower-otel-http-metrics or an issue with (I assume) cargo vendor. Our
packaging is based on crate2nix which doesn't use cargo vendor. Maybe
the problem is that README.md isn't listed in include = [ … ] in the
upstream Cargo.toml.
Current versions of Tvix no longer depend on tower-otel-http-metrics
since we've removed some components which are being worked on as part of
snix (https://snix.dev/) going forward. So you may have less trouble
building Tvix from current canon.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-08-05 18:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-22 8:40 Building tvix on openSUSE: missing README in tvix/vendor/tower-otel-http-metrics-0.11.0/src/../ Johannes Kastl
2025-08-05 18:10 ` sterni
Code repositories for project(s) associated with this public inbox
https://code.tvl.fyi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).