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

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

Open
Tim-at-AST opened this issue Feb 1, 2025 · 0 comments
Open
Assignees

Comments

@Tim-at-AST
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants