dirk-thomas / vcstool

Vcstool is a command line tool designed to make working with multiple repositories easier
Apache License 2.0
407 stars 86 forks source link

vcs export --exact-with-tags argument not working, reverts to --exact #240

Open JosephBowkett opened 2 years ago

JosephBowkett commented 2 years ago

Hi,

Avid fan of this package, cheers for all the work on it.

I've been attempting to use the vcs export --exact-with-tags flag but appear to have discovered that --exact with anything after it is considered as --exact, including --exact-with-tags, appearing to suggest an issue with argument parsing. For example, vcs export --exact, vcs export --exact-xyz and vcs --export-with-tags all produce the exact same output (git hashes only) using Ubuntu 20.04.4 and python3-vcstool 0.3.0-1.

Curious if anyone else has experienced this. I've had a go at debugging but haven't yet figured out how to modify my system install and get it to enact the changes I've made.

Cheers, Joseph

JosephBowkett commented 2 years ago

Expected behavior:

$ vcs export --exact-with-tags
repositories:
  some_pkg:
    type: git
    url: git@some_server.com:some_group/some_pkg.git
    version: v0.0.999

Actual behavior:

$ vcs export --exact-with-tags
repositories:
  some_pkg:
    type: git
    url: git@some_server.com:some_group/some_pkg.git
    version: 7301a67082f3031de1a42bf342b26fdc6e110b67