Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cargo doesn't download the latest version of a dependency #67

Closed
bachm opened this issue Jun 26, 2014 · 3 comments
Closed

Cargo doesn't download the latest version of a dependency #67

bachm opened this issue Jun 26, 2014 · 3 comments

Comments

@bachm
Copy link

bachm commented Jun 26, 2014

As I'm writing this, the latest version of cgmath-rs compiles without errors for me when built manually (git clone https://github.com/bjz/cgmath-rs.git etc.). Cargo however seems to download an older version that fails to compile. Since I have not specified a version of cgmath-rs in my project, I'm assuming this is a bug. A minimal Cargo.toml which replicates this bug:

[package]

name = "testproject"
version = "0.0.0"
authors = [ "bachm" ]

[[lib]]

name = "testproject"

[dependencies.cgmath-rs]

git = "https://github.com/bjz/cgmath-rs.git"
@ebfe
Copy link
Contributor

ebfe commented Jun 26, 2014

The testproject works just fine here. You might need to run cargo build -u to fetch the new commits as cargo build doesn't seem to check for updates in remote repositories.

@bachm
Copy link
Author

bachm commented Jun 26, 2014

Works with cargo build -u

@bachm bachm closed this as completed Jun 26, 2014
bors added a commit that referenced this issue Jul 6, 2018
…crichton

Update lazycell requirement to 1.0

Updates the requirements on [lazycell](https://github.com/indiv0/lazycell) to permit the latest version.
<details>
<summary>Release notes</summary>

*Sourced from [lazycell's releases](https://github.com/indiv0/lazycell/releases).*

> ## v1.0.0
> <a name="v1.0.0"></a>
> ## v1.0.0 (2018-06-06)
>
>
> #### Features
>
> *   Add #![no_std] ([e59f6b55](indiv0/lazycell@e59f6b5))
</details>
<details>
<summary>Changelog</summary>

*Sourced from [lazycell's changelog](https://github.com/indiv0/lazycell/blob/master/CHANGELOG.md).*

> ## v1.0.0 (2018-06-06)
>
>
> #### Features
>
> *   Add #![no_std] ([e59f6b55](indiv0/lazycell@e59f6b5))
>
>
>
> <a name="0.6.0"></a>
> ## 0.6.0 (2017-11-25)
>
>
> #### Bug Fixes
>
> *   fix soundness hole in borrow_with ([d1f46bef](indiv0/lazycell@d1f46be))
>
> #### Features
>
> *   add Default derives ([71bc5088](indiv0/lazycell@71bc508))
> *   add LazyCell::try_borrow_with ([bffa4028](indiv0/lazycell@bffa402))
> *   add LazyCell::borrow_mut method ([fd419dea](indiv0/lazycell@fd419de))
>
> #### Breaking Changes
>
> *   add `T: Send` for `AtomicLazyCell` `Sync` impl ([668bb2fa](indiv0/lazycell@668bb2f), closes [#67](https://github-redirect.dependabot.com/indiv0/lazycell/issues/67))
>
> #### Improvements
>
> *   add `T: Send` for `AtomicLazyCell` `Sync` impl ([668bb2fa](indiv0/lazycell@668bb2f), closes [#67](https://github-redirect.dependabot.com/indiv0/lazycell/issues/67))
>
>
>
> <a name="v0.5.1"></a>
> ## v0.5.1 (2017-03-24)
>
>
> #### Documentation
>
> *   fix missing backticks ([44bafaaf](indiv0/lazycell@44bafaa))
>
> #### Improvements
>
> *   derive `Debug` impls ([9da0a5a2](indiv0/lazycell@9da0a5a))
>
> #### Features
>
> *   Add get method for Copy types ([dc8f8209](indiv0/lazycell@dc8f820))
>
>
></table> ... (truncated)
</details>
<details>
<summary>Commits</summary>

- See full diff in [compare view](https://github.com/indiv0/lazycell/commits/v1.0.0)
</details>
<br />

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

---

**Note:** This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking `Bump now` in your [Dependabot dashboard](https://app.dependabot.com).

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

</details>
@gavynriebau
Copy link

With recent versions of rust/cargo I think you have to run cargo update instead.
See: https://doc.rust-lang.org/cargo/commands/cargo-update.html

ehuss pushed a commit to ehuss/cargo that referenced this issue Nov 19, 2023
Use a more clever way to replace parts of a file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants