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

Package does not build when using custom Cargo target directory #72

Closed
seqre opened this issue Jun 3, 2023 · 1 comment
Closed

Package does not build when using custom Cargo target directory #72

seqre opened this issue Jun 3, 2023 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@seqre
Copy link
Contributor

seqre commented Jun 3, 2023

The installation breaks when building tundra from AUR when a user has custom defined Cargo target directory.

AUR error:

error: failed to run custom build command for `tundra v0.4.0 (/home/seqre/.cache/paru/clone/tundra/src/tundra-0.4.0)`

Caused by:
  process didn't exit successfully: `/home/seqre/.cargo/target/release/build/tundra-be22d1479b53597a/build-script-build` (exit status: 101)
  --- stdout
  Creating directory: "target/locale"

  --- stderr
  thread 'main' panicked at 'Could not create translations directory: Os { code: 2, kind: NotFound, message: "No such file or directory" }', build.rs:19:32
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'tundra-0.4.0-1': 
error: packages failed to build: tundra-0.4.0-1

Example .cargo/config.toml to recreate issue:

[build]
target-dir = ".cargo/target"
@m4tx m4tx added bug Something isn't working good first issue Good for newcomers labels Sep 3, 2023
@m4tx
Copy link
Owner

m4tx commented Sep 3, 2023

Thanks for reporting this! Fixed in f13b595.

@m4tx m4tx closed this as completed Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants