Ruma dependency has invalid rev #95

Closed
opened 2021-06-04 17:13:38 +00:00 by duesee · 6 comments
duesee commented 2021-06-04 17:13:38 +00:00 (Migrated from gitlab.com)

Headline

Ruma dependency has invalid rev.

Description

$ cargo build
warning: unused manifest key: package.rust
    Updating git repository `https://github.com/ruma/ruma`
error: failed to get `ruma` as a dependency of package `conduit v0.1.0 (/home/duesee/repos/matrix/conduit)`

Caused by:
  failed to load source for dependency `ruma`

Caused by:
  Unable to update https://github.com/ruma/ruma?rev=e30c4a6d2071b2a93e8bd6aba52e07c9bb191fc9#e30c4a6d

Caused by:
  object not found - no match for id (e30c4a6d2071b2a93e8bd6aba52e07c9bb191fc9); class=Odb (9); code=NotFound (-3)
$ cd ruma
$ git checkout e30c4a6d2071b2a93e8bd6aba52e07c9bb191fc9
fatal: reference is not a tree: e30c4a6d2071b2a93e8bd6aba52e07c9bb191fc9

See 5b5cc0574e (note_593286815)

# Headline Ruma dependency has invalid `rev`. ### Description ``` $ cargo build warning: unused manifest key: package.rust Updating git repository `https://github.com/ruma/ruma` error: failed to get `ruma` as a dependency of package `conduit v0.1.0 (/home/duesee/repos/matrix/conduit)` Caused by: failed to load source for dependency `ruma` Caused by: Unable to update https://github.com/ruma/ruma?rev=e30c4a6d2071b2a93e8bd6aba52e07c9bb191fc9#e30c4a6d Caused by: object not found - no match for id (e30c4a6d2071b2a93e8bd6aba52e07c9bb191fc9); class=Odb (9); code=NotFound (-3) ``` ``` $ cd ruma $ git checkout e30c4a6d2071b2a93e8bd6aba52e07c9bb191fc9 fatal: reference is not a tree: e30c4a6d2071b2a93e8bd6aba52e07c9bb191fc9 ``` See https://gitlab.com/famedly/conduit/-/commit/5b5cc0574e66cbe4b08a5b8cb5f850c6cd22f3e6#note_593286815
duesee commented 2021-06-04 17:24:19 +00:00 (Migrated from gitlab.com)

I would love to fix this, but I don't know which rev to use. This doesn't work as is, but as you include the Cargo.lock file in git, would it be sufficient to just change rev=... to branch=main for now?

I would love to fix this, but I don't know which rev to use. This doesn't work as is, but as you include the Cargo.lock file in git, would it be sufficient to just change `rev=...` to `branch=main` for now?
timokoesters commented 2021-06-04 17:30:16 +00:00 (Migrated from gitlab.com)

A recent rev from the 'next' branch should work

A recent rev from the 'next' branch should work
duesee commented 2021-06-04 17:34:29 +00:00 (Migrated from gitlab.com)
$ cargo build
...
Finished dev [unoptimized + debuginfo] target(s) in 2m 41s

It does! 👍

Can I open a PR to update Cargo.toml and Cargo.lock?

``` $ cargo build ... Finished dev [unoptimized + debuginfo] target(s) in 2m 41s ``` It does! :thumbsup: Can I open a PR to update Cargo.toml and Cargo.lock?
timokoesters commented 2021-06-04 17:40:39 +00:00 (Migrated from gitlab.com)

Go for it

Go for it
duesee commented 2021-06-04 17:54:50 +00:00 (Migrated from gitlab.com)

mentioned in merge request !96

mentioned in merge request !96
timokoesters commented 2021-06-05 06:14:56 +00:00 (Migrated from gitlab.com)

mentioned in commit b3cec1d20d

mentioned in commit b3cec1d20d2bec6eb4c6a4f5d04cf24e55c878f3
Sign in to join this conversation.
No labels
Android
CS::needs customer feedback
CS::needs follow up
CS::needs on prem installation
CS::waiting
Chrome
Design:: Ready
Design:: in progress
Design::UX
E2EE
Edge
Firefox
GDPR
Iteration 13 IM
Linux
MacOS
Need::Discussion
Need::Steps to reproduce
Need::Upstream fix
Needs:: Planning
Needs::Dev-Team
Needs::More information
Needs::Priority
Needs::Product
Needs::Refinement
Needs::Severity
Priority::1-Critical
Priority::2-Max
Priority::3-Impending
Priority::4-High
Priority::5-Medium
Priority::6-Low
Priority::7-None
Progress::Backlog
Progress::Review
Progress::Started
Progress::Testing
Progress::Triage
Progress::Waiting
Reporter::Sentry
Safari
Target::Community
Target::Customer
Target::Internal
Target::PoC
Target::Security
Team:Customer-Success
Team:Design
Team:Infrastructure
Team:Instant-Messaging
Team:Product
Team:Workflows
Type::Bug
Type::Design
Type::Documentation
Type::Feature
Type::Improvement
Type::Support
Type::Tests
Windows
blocked
blocked-by-spec
cla-signed
conduit
contribution::advanced
contribution::easy
contribution::help needed
from::review
iOS
p::ti-tenant
performance
product::triage
proposal
refactor
release-blocker
s: dart_openapi_codegen
s::Famedly-Patient
s::Org-Directory
s::Passport-Generator
s::Requeuest
s:CRM
s:Famedly-App
s:Famedly-Web
s:Fhiroxide
s:Fhiroxide-cli
s:Fhiroxide-client
s:Fhirs
s:Hedwig
s:LISA
s:Matrix-Dart-SDK
s:Role-Manager
s:Synapse
s:User-Directory
s:WFS-Matrix
s:Workflow Engine
s:dtls
s:famedly-error
s:fcm-shared-isolate
s:matrix-api-lite
s:multiple-tab-detector
s:native-imaging
severity::1
severity::2
severity::3
severity::4
technical-debt
voip
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Matthias/conduit#95
No description provided.