Skip to content
This repository was archived by the owner on Jun 25, 2020. It is now read-only.
This repository was archived by the owner on Jun 25, 2020. It is now read-only.

Is it time to change the default filename from .rosinstall to .wstool? #19

Closed

Description

@jbohren

Would it be reasonable to change the default config file from .rosinstall to .wstool? The idea is that wstool will still recognize .rosinstall files, but will also process files named .wstool. By default going forward, wstool init would create a .wstool file.

Activity

  1. tkruse commented on Mar 20, 2014

    @tkruse
    Contributor

    -1, I see little benefit from it, but it creates confusion. Describe more what benefits you see.

    As an example, wstool also consumes oth xyz.rosinstall files from various locations. That commonality indicates a relationship.

  2. 130s commented on Mar 20, 2014

    @130s

    +1; For beginners, googling about .rosinstall will hit the pages for the tool rosinstall, which could make them confused (at least I was made so).
    This can be moderated by clarifying the relationship on rosinstall web pages though.

  3. jbohren commented on Mar 20, 2014

    @jbohren
    ContributorAuthor

    @130s

    +1; For beginners, googling about .rosinstall will hit the pages for the tool rosinstall, which could make them confused (at least I was made so).
    This can be moderated by clarifying the relationship on rosinstall web pages though.

    Exactly.

    Also, these days people are with me when I tell them about wstool until I mention that it uses the '.rosinstall' extension. Then it brings up questions like "is this installing something?" "How is this different from rosdep install?" "Is this a ROS-specific thing?" Etc.

    It wouldn't be hard to have wstool handle two filetypes, and it would clear up a lot of the beginner confusion.

  4. tkruse commented on Mar 20, 2014

    @tkruse
    Contributor

    -0, then. Fair enough, but given the naming changes in the past, a name that is not bound to the tool but to the purpose might be more useful, then.

  5. jbohren commented on Mar 20, 2014

    @jbohren
    ContributorAuthor

    Ok so how about (off the to of my head):

    • .repos
    • .repositories
    • .versioned_dirs
    • .vcs_dirs
    • .vcsdirs
    • .vcsd
  6. tfoote commented on Mar 20, 2014

    @tfoote
    Contributor

    -1

    I'm not enthusiastic about changing the name just for the sake of changing the name. It's quite disruptive, requires a lot of documentation and support changes, including updating REPs http://www.ros.org/reps/rep-0126.html, wiki, answers.ros.org answers.

    I suggest that until we change the format, we keep the name. At that time we can update the documentation for both the new format definition and new name. There will not be ambiguity in searches and support requests.

    Explaining that it's reusing a file format from another similar tool is not that hard.

  7. wjwwood commented on Mar 20, 2014

    @wjwwood
    Contributor

    So, the reason for using .rosinstall is because the contents are specific to rosinstall. I understand the desire to move to something that better reflects the workspace and wstool, but we should keep in mind that the contents remain a rosinstall file. To me this is a bit of a Bike Shed argument, and since any change has cost in engineering time and user disruption, I would -0 it.

    In the past we had talked about changing away from the current rosinstall format, but we shied away from that because we didn't want to have to implement and new library which provided the functionality of rosinstall for the new format. Two main reasons for replacing rosinstall:

    • As pointed out above, rosinstall neither needs to be ROS specific nor does it install anything, so a better name would be appropriate
    • The rosinstall format allows you to specify conflicting local-names
    • rosinstall provides functionality which couples it to rosbuild, rosws, and catkin

    To the second point, consider this:

    - git:
      uri: https://github.com/org/foo.git
      version: master
      local-name: foo
    - git:
      uri: https://github.com/fork/foo.git
      version: master
      local-name: foo

    If you try to run rosinstall the above, you will have both trying to go into the foo folder locally and rosinstall will just use the second one, ignoring the first. The new format was to be something like this:

    foo:
      vcs: git
      url: https://github.com/org/foo.git
      version: master
    foo-fork:
      vcs: git
      url: https://github.com/fork/foo.git
      version: master

    Because the local name is the key of the dictionary, it naturally prevents this overlap.

    Anyways, I said all that to say: I was always thinking that when/if we change the format, then we would change the file name, but not before.

    So if we do change it before we change the tool/format then I agree it should be a purpose oriented name.

  8. jbohren commented on Mar 20, 2014

    @jbohren
    ContributorAuthor

    Anyways, I said all that to say: I was always thinking that when/if we change the format, then we would change the file name, but not before.

    So if we do change it before we change the tool/format then I agree it should be a purpose oriented name.

    Ok, I didn't realize there was even a rough plan to fix the issues with the format. It definitely makes sense to wait until that happens.

    So I'll close this, and we can track a new format in a new ticket?

  9. wjwwood commented on Mar 20, 2014

    @wjwwood
    Contributor

    So I'll close this, and we can track a new format in a new ticket?

    Well, I don't know of any timeline to replace rosinstall, and the work involved has delayed action on this thus far.

  10. jbohren commented on Mar 20, 2014

    @jbohren
    ContributorAuthor

    Well, I don't know of any timeline to replace rosinstall, and the work involved has delayed action on this thus far.

    Of course. I'm not saying that anyone does have time. But it's it's something that would be nice, we might as well track it. I'm also not suggesting that rosinstall changes, just that wstool would use an improved format with a different filename.

  11. tkruse commented on Mar 20, 2014

    @tkruse
    Contributor

    rosinstall is now just a thin layer on top of wstool as a library. We do that in order to maintain code only once. So if we introduce new syntax, we introduce it for both.

  12. tkruse commented on Feb 4, 2015

    @tkruse
    Contributor

    vcstool is an alternative to rosinstall/wstool that does not support rosmake (no central file from which to produce a ROS_PACKAGE_PATH, or a setup.sh). It is viable in combination with catkin.

    See https://groups.google.com/d/msg/ros-sig-buildsystem/VqziwxVnmb0/ui_BZ3qy4x4J for some history.

  13. dirk-thomas commented on Feb 4, 2015

    @dirk-thomas
    Contributor

    The technical advantages of vcstool from my point of view:

    • does not use any separate file for meta information, information about repositories can not go out-of-sync
    • uses a different file format to "export" repository configurations (which does not allow collisions by design), can "import" the same file format (as well as rosinstall files)
    • exports allow different "granularity": store specific branch / tag / hash in export file

    The advantages from a user point of view:

    • operates on any filesystem hierarchy
    • has some advanced option like vcs log --limit-untagged
    • allows running arbitrary commands on a set of repositories (see vcs custom)
    • is a very thin wrapper around the native tools and does not perform any magic and therefore no surprises

    There are certainly features in wstool / rosinstall which vcstool does not cover but for my personal use I never use those tools and therefore can't comment on them.

  14. jayvdb commented on Nov 23, 2017

    @jayvdb
    Contributor

    Why not add support for .wstool as the default, and fall back to .rosinstall.

    For extra sanity, if both exist, check they are identical, and fail if they are not.

  15. dirk-thomas commented on Jun 25, 2020

    @dirk-thomas
    Contributor

    Closing since the repository is about to be archived: see #154.

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