maliput / maliput-rs

Rust bindings for maliput and other tools
https://maliput.github.io/maliput-rs/
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Publish packages over crate.io #52

Closed francocipollone closed 6 months ago

francocipollone commented 6 months ago

Summary

Verify

francocipollone commented 6 months ago

When doing

cargo package -p maliput-sdk

I am facing the following bazel-related error:

cargo package -p maliput-sdk
   Packaging maliput-sdk v0.1.0 (/workspaces/maliput-rs/maliput-sdk)
   Verifying maliput-sdk v0.1.0 (/workspaces/maliput-rs/maliput-sdk)
   Compiling maliput-sdk v0.1.0 (/workspaces/maliput-rs/target/package/maliput-sdk-0.1.0)
error: failed to run custom build command for `maliput-sdk v0.1.0 (/workspaces/maliput-rs/target/package/maliput-sdk-0.1.0)`

Caused by:
  process didn't exit successfully: `/workspaces/maliput-rs/target/package/maliput-sdk-0.1.0/target/debug/build/maliput-sdk-17a7ec12815580fe/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=src/lib.rs
  cargo:rerun-if-changed=BUILD.bazel
  cargo:rerun-if-changed=MODULE.bazel

  --- stderr
  Starting local Bazel server and connecting to it...
  Loading: 
  Loading: 
  Loading: 0 packages loaded
  ERROR: Skipping '//...': error loading package under directory '': error loading package 'target/debug/build/maliput-sdk-64edc029339fa7df/out/bazel_output_base/install/embedded_tools/src/main/protobuf': Unable to find package for @[unknown repo 'com_google_protobuf' requested from @]//:protobuf.bzl: The repository '@[unknown repo 'com_google_protobuf' requested from @]' could not be resolved: No repository visible as '@com_google_protobuf' from main repository.
  WARNING: Target pattern parsing failed.
  ERROR: error loading package under directory '': error loading package 'target/debug/build/maliput-sdk-64edc029339fa7df/out/bazel_output_base/install/embedded_tools/src/main/protobuf': Unable to find package for @[unknown repo 'com_google_protobuf' requested from @]//:protobuf.bzl: The repository '@[unknown repo 'com_google_protobuf' requested from @]' could not be resolved: No repository visible as '@com_google_protobuf' from main repository.
  INFO: Elapsed time: 1.608s
  INFO: 0 processes.
  FAILED: Build did NOT complete successfully (44 packages loaded)
  thread 'main' panicked at build.rs:56:9:
  Failed to generate build script
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: failed to verify package tarball

Seems to be related to com_google_protobuf.

francocipollone commented 6 months ago

First iteration is done:

Notes