[
https://issues.apache.org/jira/browse/AVRO-3529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17550469#comment-17550469
]
Martin Tzvetanov Grigorov edited comment on AVRO-3529 at 6/12/22 10:37 AM:
---------------------------------------------------------------------------
Hm! I am not sure how to solve this problem now.
Currently `./build.sh dist` creates the source distribution, i.e. the .crate
file for Rust.
Since we have two modules (avro and avro-derive) this is no more possible
because they are not released yet and `cargo package` does not support local
dependencies ...
At
[https://github.com/apache/avro/pull/1570/commits/69772c3d234e2686d9722c10259612f9eb6e12db]
I disabled "./build.sh dist" completely for Rust. Only the new "./build.sh
release" target works by publishing first "avro-derive" and then "avro".
[~Klamer] I see no other solution than using "tar zcvf ..." to create the
source distribution. Any other ideas ?
was (Author: mgrigorov):
Hm! I am not sure how to solve this problem now.
Currently `./build.sh dist` creates the source distribution, i.e. the .crate
file for Rust.
Since we have two modules (avro and avro-derive) this is no more possible
because they are not released yet and `cargo package` does not support local
dependencies ...
At
[https://github.com/apache/avro/pull/1570/commits/69772c3d234e2686d9722c10259612f9eb6e12db]
I disabled "./build.sh dist" completely for Rust. Only the new "./build.sh
release" target works by publishing first "avro-derive" and then "avro".
[~Klamer] I see no other solution than using "tar zxvf ..." to create the
source distribution. Any other ideas ?
> [Rust][branch-1.11] Cargo.toml is a virtual manifest, requires actual package
> -----------------------------------------------------------------------------
>
> Key: AVRO-3529
> URL: https://issues.apache.org/jira/browse/AVRO-3529
> Project: Apache Avro
> Issue Type: Bug
> Reporter: Ryan Skraba
> Assignee: Martin Tzvetanov Grigorov
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.11.1, 1.12.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> {code}
> cd ~/avro/lang/rust
> ./build.sh clean test dist
> {code}
> Results in
> {code}
> Compiling ctor v0.1.22
> Compiling strum_macros v0.24.0
> Compiling typed-builder v0.10.0
> Compiling zerocopy-derive v0.3.1
> Compiling apache-avro-test-helper v0.1.0
> (/home/ryan.skraba/avro/lang/rust/avro_test_helper)
> Compiling bzip2 v0.4.3
> Compiling darling_macro v0.14.1
> Compiling thiserror v1.0.31
> Compiling zerocopy v0.6.1
> Compiling darling v0.14.1
> Compiling xz2 v0.1.6
> Compiling uuid v1.1.1
> Compiling apache-avro-derive v0.14.0
> (/home/ryan.skraba/avro/lang/rust/avro_derive)
> Compiling zstd v0.11.2+zstd.1.5.2
> Compiling apache-avro v0.14.0 (/home/ryan.skraba/avro/lang/rust/avro)
> Finished release [optimized] target(s) in 35.66s
> error: manifest path `/home/ryan.skraba/avro/lang/rust/Cargo.toml` is a
> virtual manifest, but this command requires running against an actual package
> in this workspace
> {code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)