Skip to content

rustpkg makes it difficult to work with local changes to submodules #9514

Closed

Description

@catamorphism

Currently, there is no easy way when using rustpkg to write:

extern mod foo = "github.com/mozilla/whatever";

and concurrently be developing the whatever package, with local patches that aren't in the github repo. You can make local changes, but rustpkg will overwrite them (although you shouldn't be able to, as per #6480). If you instead check out the sources for whatever into a different directory and work on the copy in that directory, you have to change the extern mod directive and, for the benefit of anyone else using your package, bundle the sources for whatever as a submodule. This is not ideal. I'm not sure how to reconcile wanting to name packages by their URLs with wanting to make local changes to them.

/cc @metajack since we talked about this before.

Activity

  1. catamorphism commented on Oct 1, 2013

    @catamorphism
    ContributorAuthor

    I think this needs to be fixed in concert with #6480 , otherwise there's too much potential for confusion in the meantime.

  2. catamorphism commented on Oct 5, 2013

    @catamorphism
    ContributorAuthor

    This can close when #9732 lands. See the tests::test_installed_local_changes for how it's supposed to work.

  3. catamorphism commented on Oct 11, 2013

    @catamorphism
    ContributorAuthor

    #9732 fixed this.

  4. added a commit that references this issue on Aug 21, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions