Closed devinus closed 11 years ago
The issue is that any solution in this area is going to be targeted to specific providers, like Github. So if we are going this road, we need to ultimately check Github semantics to see if we can replace git@github.com
by https://github.com/
without any meaningful side-effect.
Well, there are two issues here:
git://
, maybe even warn on any other protocol when pointing to :github
deps.git@
is a bad idea because it requires authentication (breaks build servers and the like).@alexrp Did you see: https://github.com/elixir-lang/elixir/commit/aa7400aaadec5495a38185e598a7817cc83381e2 ?
Nope, but that's good.
Can't we just update the docs to say "use git://
for non-GitHub dependencies that are in Git repositories"?
We could even enforce it, I suppose...
If they are different sources (i.e. GitHub and non-GitHub), there is nothing we can do. The problem here is when it is the same source (Github in particular) but over different schemas. I am not sure if there is something we can do after all. https
is useful for proxies, git
should be the default faster one and ssh
is required for private repos.
What about introducing a github
-specific syntax like Bundler (in Ruby) has done?
# Gemfile
gem 'rails', github: 'rails/rails'
@alindeman We already have that.
Oh, nice.
What is the status of this? Is there anything we can do? If the commit hash we store in mix.lock is the same for both schemes can we assume that they point to the same thing?
If not I think we should leave it as is, if you have a conflict you can override it in your top-level project.
Yeah, let's just say you need to override it explicitly for now.
E.g., this happens now: