Skip to content

Release tarballs can not be build standalone #3414

@alamb

Description

@alamb

Describe the bug
As we saw in #3413, the contents of the arrow-rs release tarballs do not work when used alone. When uploaded to crates.io things work fine as crates.io modifies the Cargo.toml files.

Since almost everyone uses the crates.io distribution this issue is likely not a big deal.

To Reproduce

  1. Download a tarball such as https://dist.apache.org/repos/dist/dev/arrow/apache-arrow-rs-30.0.0-rc1/apache-arrow-rs-30.0.0.tar.gz
  2. try to build the parquet parquet crate: (cd parquet && cargo build)

This will fail with a message like

error: failed to get `object_store` as a dependency of package `parquet v30.0.0 (/tmp/arrow/parquet)`

Expected behavior
The build should work

Additional context

I think (and @tustvold suggested) is that we should apply the fix in #3413 to the tarball creation rather than during verification

So that would mean something like rewriting

object_store = { version = "0.5", path = "../object_store", default-features = false, optional = true }

To remove the path = "../object_store"

object_store = { version = "0.5", default-features = false, optional = true }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions