Closed iclanton closed 1 year ago
Actually this is a good suggestion, we are also going through issues where some users are using an old path in their local git repository to this day, and get warnings because of it.
Maybe we can also include the two suggestions from https://github.com/microsoft/rushstack/issues/1522#issuecomment-531391023, perhaps using the normalize-git-url package mentioned in that thread.
What was @deanbot's problem? Was it https://my-tenant.visualstudio.com/my-project/_git/my-repo
vs my-tenant@vs-ssh.visualstudio.com:v3/my-tenant/my-project/my-repo
?
I think with this feature, he'd want to just specify both of those URLs. I'm uncomfortable with Rush trying to translate between the two. Introducing Azure DevOps (or any source control provider) -specific URL transformations in Rush feels inappropriate.
@iclanton it was just ssh vs https repo address. Great idea re including multiple urls.
I would also like this feature. We use an ssh key to checkout files locally but the ci system uses https.
@iclanton should this have been closed with #3083?
✅ Fixed in the above-mentioned PR (rush.json now supports "url" and "urls" properties).
Is this a feature or a bug?
Please describe the actual behavior.
We recently renamed this repo, which means that the git clone URL changed from
https://github.com/microsoft/web-build-tools.git
tohttps://github.com/microsoft/rushstack.git
. I just ranrush change
in this repo and it wasn't able to determine which branch to diff against because my clone sill pointed at https://github.com/microsoft/web-build-tools.git.This is also an issue with Azure DevOps repositories, which can be configured to be accessed at either
https://dev.azure.com/<project>
orhttps://<project>.visualstudio.com/
.What is the expected behavior?
Clones prior to renames should be supported.
I propose we change the schema of
rush.json
to support either astring
or astring[]
for therepository.url
property, where a list of URLs may be provided, any one of which is a valid URL for a default remote.If this is a bug, please provide the tool version, Node.js version, and OS.