If the package ID is of the form s#v, where v is a valid version string, fetch tag v of that package.
For now, the test I added just checks that PkgId::new parses the version number out of a git repo's tags list, where relevant.