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

build_style = "cargo" doesn't respect make_dir #3094

Open
z-erica opened this issue Oct 19, 2024 · 1 comment
Open

build_style = "cargo" doesn't respect make_dir #3094

z-erica opened this issue Oct 19, 2024 · 1 comment

Comments

@z-erica
Copy link
Contributor

z-erica commented Oct 19, 2024

0:00:01.276 => yabridgectl-5.1.0-r0: running prepare...
[vendoring etc]
0:00:02.068 => yabridgectl-5.1.0-r0: running patch hook: 000_patches...
0:00:02.070 => yabridgectl-5.1.0-r0: running setup hook: 000_env_pkg_config...
0:00:02.072 => yabridgectl-5.1.0-r0: running setup hook: 001_lang_vers...
0:00:02.073 => yabridgectl-5.1.0-r0: running build...
warning: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
(in the `goblin` dependency)
error: failed to get `anyhow` as a dependency of package `yabridgectl v5.1.0 (/builddir/yabridgectl-5.1.0/tools/yabridgectl)`

Caused by:
  failed to load source for dependency `anyhow`

Caused by:
  Unable to update registry `crates-io`

Caused by:
  failed to update replaced source registry `crates-io`

Caused by:
  failed to read root of directory source: /builddir/yabridgectl-5.1.0/vendor

Caused by:
  No such file or directory (os error 2)

this happens because the vendored sources are placed in {self.make_dir}/vendor but the .cargo directory is created in the template srcdir

@z-erica
Copy link
Contributor Author

z-erica commented Oct 19, 2024

note that setting build_wrksrc instead doesn't work either, since the prepare phase (which runs cargo vendor) still runs from the template srcdir

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

1 participant