Comments (2)
My idea for conflict resolution is
- Separate by provider
- Separate by account name
- Separate by repo name.
Or, another idea is to not append to clone path
and change the repo directory name.
But that could make the name of the directory too long.
Examples.
I have a Github
and ADO
provider and I want to download a repo called MyRepo
from both. Clone Path
is C:\users\dhoehna\Desktop\MyRepos
. ADO
provider happens to start cloning first. Github
provider runs into a conflict.
Github
will instead download to [Clone Path]\[ProviderName]\[RepoName]
in this example C:\users\dhoehna\Desktop\MyRepos\MyRepo
Then, after path resolution if a repository exists then -N
where N
is the number of folders is appended to the folder name.
Lets say the repo existed. Then, the path would be C:\users\dahoehna\Desktop\MyRepos\MyRepos-1
Discussion is encouraged.
Basically, how do we avoid naming conflicts so a repo is cloned no matter what?
from devhome.
@dhoehna There is no need to prevent collision a priori. Collisions can happen for many reasons, many of them not in dev home's control. If we find a collision (i.e. the cloning fails) for whatever reason, we should just show an error. We should not insert artificial separation of repos based on provider or account, please make it so repos get cloned to the expected location of FolderPathIEnteredInTheUI\NameOfTheRepo
.
from devhome.
Related Issues (20)
- Add telemetry for app selection source
- Crash when selecting the "..." on an environment causes a crash.
- Dev home does not refresh Dev Box Status after machine start HOT 1
- Dev Home failed to apply winget package on my dev box
- Dev Box commands incorrect location
- Dev Home takes 40-60 seconds before starting to apply a winget package to a dev box.
- All the widgets flicker on every update, making it distracting HOT 2
- manage SSH configurations
- Dev drives without a drive letter are not recognized.
- No access to DevBoxes despite being in Hyper-v group
- Pipelines overview
- Dev Box configuration waits a couple of minutes to show status
- Dev Home SDK should support extensions querying winget for package information
- Pull Request Widget for Azure DevOps Needs Improvement
- Can't add domain users to Hyper-V Admin group HOT 5
- Can't change api key in quickstart-playground HOT 2
- Bloat HOT 3
- Add an option to scan for or add Existing Repos HOT 3
- Can't select the image of a Hyper-V virtual machine. The field is not displayed HOT 1
- Absurd CPU usage percentage
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devhome.