Closed aleksmelnikov closed 4 years ago
It looks like the latest change broke the build by introducing a workspace for Rust projects. This should be fix now with 488dfb0.
As to the errors with the release script, it requires the PGP signing key as it is used to produce the release artifacts. It is not surprising that it fails without it.
@woutersl , with new version from github and with hime_redist = "3.4.1"
:
[1] OK
$ sh .releng/build.sh
[INFO] 2289 tests executed, 0 failed, 0 errors
[2] Error
$ sh .releng/release.sh
-- Building Hime Redist for Rust --
Updating crates.io index
Compiling hime_redist v3.4.2 (/tmp/hime/runtime-rust)
Finished release [optimized] target(s) in 4.46s
Packaging hime_redist v3.4.2 (/tmp/hime/runtime-rust)
-- Building Package --
cp: cannot stat '/tmp/hime/runtime-rust/target/package/*.crate': No such file or directory
.releng/release.sh: 121: .releng/release.sh: zip: not found
find /tmp -name hime_redist-3.4.2.crate
/tmp/hime/target/package/hime_redist-3.4.2.crate
$cat ./.releng/release.sh | grep crate
cp $ROOT/runtime-rust/target/package/*.crate "$RELENG/hime-$VERSION/rust/"
I think this line should be:
cp $ROOT/target/package/*.crate "$RELENG/hime-$VERSION/rust/"
Because rust workspace
has one shared /target
for all workspace crates:
/target
/debug
/release
/crate1
/crate2
Cargo.toml
Yes it is the problem introduced by the usage of the Rust workspace. This should be fixed with 9f71e2a.
Ok, it works now. Thank you! So, I close the issue.
Environment:
[1]
$ sh .releng/build.sh
[2]
sh .releng/release.sh