tools / godep

dependency tool for go
http://godoc.org/github.com/tools/godep
BSD 3-Clause "New" or "Revised" License
5.54k stars 455 forks source link

[feature] Packages aliasing #483

Open on99 opened 8 years ago

on99 commented 8 years ago

Hi, I would like to request for the packages aliasing feature which can help quite a lot when we are working with github forks.

This issue may duplicates #64 but it was closed.

freeformz commented 8 years ago

Would an "origin" field referencing the full path to a different repo location be acceptable (this is what vendor.json does)?

So you would have something like this to "alias" the package github.com/heroku/slog from the location github.com/freeformz/slog.

...
"Deps": [
  {
    "ImportPath": "github.com/heroku/slog",
    "Origin": "github.com/freeformz/slog",
    "Rev": "abcdefg"
  }
]
...

restore would also have to add the other remote somehow and also fetch from there. Maybe it's okay to punt on that though to start?

on99 commented 8 years ago

I think that's a good start. @freeformz

on99 commented 8 years ago

Any progress? @freeformz

vladimirvivien commented 8 years ago

@on99 @freeformz Any progress on this feature?

jmwilkinson commented 6 years ago

What is the status on this?

freeformz commented 6 years ago

I'm not actively maintaining godep anymore. I should update the README to reflect that. I suggest taking a look at dep instead.