Skip to content

Commit 5ac3974

Browse files
committed
Fix version dependency from foo -> xml-rs
1 parent aefa890 commit 5ac3974

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

text/0000-cargo-prepublish.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ are incompatible.
124124
### Scenario: augmenting with a bugfix
125125

126126
Let's say that while developing `foo` we've got a lock file pointing to `xml-rs`
127-
`0.8.0`, and we found the `0.8.0` branch of `xml-rs` that hasn't been touched
128-
since it was published. We then find a bug in the 0.8.0 publication of `xml-rs`
127+
`0.9.0`, and we found the `0.9.0` branch of `xml-rs` that hasn't been touched
128+
since it was published. We then find a bug in the 0.9.0 publication of `xml-rs`
129129
which we'd like to fix.
130130

131131
First we'll check out `foo` locally and implement what we believe is a fix for
@@ -136,9 +136,9 @@ this bug, and next, we change `Cargo.toml` for `foo`:
136136
xml-rs = { path = "../xml-rs" }
137137
```
138138

139-
When compiling `foo`, Cargo will resolve the `xml-rs` dependency to `0.8.0`,
139+
When compiling `foo`, Cargo will resolve the `xml-rs` dependency to `0.9.0`,
140140
as it did before, but that version's been replaced with our local copy. The
141-
local path dependency, which has version 0.8.0, takes precedence over the
141+
local path dependency, which has version 0.9.0, takes precedence over the
142142
version found in the registry.
143143

144144
Once we've confirmed a fix bug we then continue to run tests in `xml-rs` itself,

0 commit comments

Comments
 (0)