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.

Feature Request: Add --tags option to export command #131

@rsinnet

Description

@rsinnet

Feature Request

Currently, the export command has two options (--exact and --spec) which control which versions are set in the generated .rosinstall. These options do NOT, however, allow capturing of the latest tag. This would be useful to capture a reference that will include future hot fixes and back-ported patches.

Proposal

There are several versioning systems, but I think implementing just Git would be a starting point.

I propose we add the --tags option to the export commmand. This could do something like:

git describe --abbrev=0 --tags SOME_HASH

Using this with or without the --spec option would give specify which reference to pass to the above command.

But we have a bit of ambiguity that needs to be resolved, but not all repositories have tags. I think the only way to make this command practically useful is to assume any repository with a tag should use the tag. This may not work for everyone's use case but the problem becomes much more difficult if this is allowed to be set on a case-by-case basis.

As far as repositories that don't have tags, a fallback behavior is needed. I propose that this behavior function based on the presence of --spec and --exact.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions