This change adds support for displaying and performing updates for Go packages vendored into vendor directory of a repository using git-subrepo tool. /cc @dominikh
This PR contains some WIP commits, but is functional as of last commit.
[x] The only remaining task is completing the functionality gitSubrepoUpdater.Update. It's best done by someone who uses git-subrepo, just need to make it run the command you'd normally run to update the dependency.
Descoping this. It can be safely done as a followup PR instead.
[x] Also, probably using the current working directory of Go-Package-Store process when running that command isn't ideal either, so maybe the working directory should be figured out from the -git-subrepo flag value? Take the parent of the passed directory, since you're likely giving it the vendor subfolder of the project root.
Descoping this, since it's a part of the updater, which is no longer a part of this PR.
This change adds support for displaying and performing updates for Go packages vendored into vendor directory of a repository using
git-subrepo
tool. /cc @dominikhUsage:
This PR contains some WIP commits, but is functional as of last commit.
gitSubrepoUpdater.Update
. It's best done by someone who usesgit-subrepo
, just need to make it run the command you'd normally run to update the dependency.Go-Package-Store
process when running that command isn't ideal either, so maybe the working directory should be figured out from the -git-subrepo flag value? Take the parent of the passed directory, since you're likely giving it the vendor subfolder of the project root.