Skip to content

cargo make fails because filename too long. (same as issue #1150?) #1224

Open
@Tim-at-AST

Description

Describe The Bug

Compiling the espanso rust binary fails because a file with very long name fails to be written.

I also have a dual boot system with Ubuntu 24.04 LTS 6.8.0-40-generic with an encrypted disk, and I am guessing that the problem is the same as issue #1150. The ridiculously long filename that the compiler creates seems to be a random filename.

To Reproduce

Assume: dual boot system with Ubuntu 24.04 LTS 6.8.0-40-generic with an encrypted disk.

Using instructions from Espanso website:

git clone https://github.com/espanso/espanso

cd espanso

# Compile espanso in release mode
# NOTE: this will take a while (~5/15 minutes)
cargo make --profile release --env NO_X11=true build-binary 

Error Stack

cd espanso/
$cargo make --profile release --env NO_X11=true build-binary
[cargo-make] INFO - cargo make 0.37.24
[cargo-make] INFO - 
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: build-binary
[cargo-make] INFO - Profile: release
[cargo-make] INFO - Running Task: build-binary
[cargo-make] INFO - Execute Command: "rust-script" "/home/username/espanso/target/_cargo_make_temp/persisted_scripts/569357e6cea1f7732052a6a426e226a74fbf1b27bdf1c65a4b4db88fbfeeaed4.rs"
error: could not write output to /home/username/.cache/rust-script/binaries/release/deps/_569357e6cea1f7732052a6a426e226a74fbf1b27bdf1c65a4b4db88fbfeeaed4_3bc7bb93e8c3cb7d87701587-aa771e82adba94aa._569357e6cea1f7732052a6a426e226a74fbf1b27bdf1c65a4b4db88fbfeeaed4_3bc7bb93e8c3cb7d87701587.164676f3c8e5558b-cgu.1.rcgu.o: File name too long

Code Sample

/// paste code here

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions