Skip to content

cargo should add option to install HEAD versions #2897

@erickt

Description

@erickt
Contributor

I'd like to keep my cargo crates pinned to a 0.3 compatible version, but keep working on later versions to shake out rustc bugs. Can cargo grow a cargo install --ref HEAD option to override any baked in revisions?

Activity

z0w0

z0w0 commented on Jul 13, 2012

@z0w0
Contributor

Does cargo install git://github.com/blah/blah HEAD and adding ref: "HEAD" to packages.json not add that functionality, or am I missing something? Cargo is still terribly out-dated at the moment and is still rolling-release, so I'm afraid there's not much you can do right now.

EDIT: Oh, I see. You want to add a command line option that manually details that you want the latest HEAD. No, you can't do that yet. I think it's a good idea, but it might be better to just add versions instead.

z0w0

z0w0 commented on Mar 8, 2013

@z0w0
Contributor

Closing because Cargo is obsolete as of version 0.6. FTR rustpkg will be based around version control by default.

added a commit that references this issue on May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @erickt@z0w0

        Issue actions

          cargo should add option to install HEAD versions · Issue #2897 · rust-lang/rust