Skip to content

chore(deps): allow using newer version of time crate - #8296

Merged
Xuanwo merged 1 commit into
lance-format:mainfrom
dtolnay-contrib:time
Aug 7, 2026
Merged

Xuanwo merged 1 commit into
lance-format:mainfrom
dtolnay-contrib:time

Conversation

@dtolnay

@dtolnay dtolnay commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

The time dependency was pinned to 0.3.47 in e090896 to mitigate this build error in aws-smithy-types:

error[E0119]: conflicting implementations of trait `From<format_description::parse::format_item::HourBase>` for type `<format_description::parse::format_item::HourBase as format_description::parse::format_item::ModifierValue>::Type`
  --> $CARGO_HOME/registry/src/index.crates.io-1949cf8c6b5b557f/aws-smithy-types-1.4.5/src/timeout.rs:49:1
   |
49 | impl<T> From<T> for CanDisable<T> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: conflicting implementation in crate `time`:
           - impl From<format_description::parse::format_item::HourBase> for <format_description::parse::format_item::HourBase as format_description::parse::format_item::ModifierValue>::Type;

But that blocks using lance in projects that require features from a newer version of time. The conflict was fixed a long time ago by time-rs/time#786.

@github-actions github-actions Bot added A-deps Dependency updates A-namespace Namespace impls labels Aug 5, 2026
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

ACTION NEEDED
Lance follows the Conventional Commits specification for release automation.

The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification.

For details on the error please inspect the "PR Title Check" action.

@dtolnay dtolnay changed the title Allow using newer version of time crate chore(deps): allow using newer version of time crate Aug 5, 2026
@github-actions github-actions Bot added the chore label Aug 5, 2026

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Gate recommendation: request changes.

Removing the obsolete pin is the right solution. This revision still needs to carry the dependency-graph change through all three repository lockfiles so every supported manifest remains reproducible.

# Pin: time 0.3.48 conflicts with aws-smithy-types (E0119: conflicting `From` impls), which this
# crate pulls in via the AWS credential vendor. Capping time here forces the workspace resolver to
# 0.3.47 even for no-lock builds. Not used directly; remove once the upstream conflict is resolved.
time = "=0.3.47"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this manifest dependency changes the lance-namespace-impls package entry, but this revision updates only the root Cargo.lock. python/Cargo.lock and java/lance-jni/Cargo.lock still list time directly, so both excluded manifests now fail locked resolution and the repository cargo-lock-sync contract. Refresh and commit both excluded lockfiles alongside the root lockfile.

Reproducer
$ cargo metadata --locked --format-version 1 --manifest-path python/Cargo.toml >/dev/null
error: cannot update the lock file ... because --locked was passed

$ cargo metadata --locked --format-version 1 --manifest-path java/lance-jni/Cargo.toml >/dev/null
error: cannot update the lock file ... because --locked was passed

Both commands were run against this head and exited nonzero; locked resolution is expected to succeed.

@github-actions github-actions Bot added A-python Python bindings A-java Java bindings + JNI labels Aug 5, 2026

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Gate recommendation: approve.

The obsolete exact pin is removed at the correct boundary, the AWS-enabled dependency graph remains compatible with the fixed time release, and all three repository lockfiles are synchronized.

@Xuanwo
Xuanwo merged commit 43a3284 into lance-format:main Aug 7, 2026
40 checks passed
@dtolnay
dtolnay deleted the time branch August 8, 2026 05:17
meta-codesync Bot pushed a commit to facebookexperimental/rust-shed that referenced this pull request Aug 8, 2026
Summary:
This beta release contains all of the following PRs relevant to fbsource:

- lance-format/lance#8296
- lance-format/lance#8303
- lancedb/lancedb#3800

Reviewed By: JakobDegen

Differential Revision: D115287840

fbshipit-source-id: 5c170f46b986439255204e14a3a295654600f447
meta-codesync Bot pushed a commit to meta/sapling that referenced this pull request Aug 8, 2026
Summary:
This beta release contains all of the following PRs relevant to fbsource:

- lance-format/lance#8296
- lance-format/lance#8303
- lancedb/lancedb#3800

Reviewed By: JakobDegen

Differential Revision: D115287840

fbshipit-source-id: 5c170f46b986439255204e14a3a295654600f447
@Xuanwo Xuanwo added the K-approved Latest Gatekeeper recommendation permits acceptance. label Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-deps Dependency updates A-java Java bindings + JNI A-namespace Namespace impls A-python Python bindings chore K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants