spdfg / elektron

Elektron is a lightweight, power-aware, pluggable Mesos framework that behaves as a playground to experiment with different scheduling policies to schedule ad-hoc jobs in docker containers.
GNU General Public License v3.0
4 stars 3 forks source link

Refactor imports, Add vendor/ as submodule #5

Closed pradykaushik closed 4 years ago

pradykaushik commented 4 years ago
  1. Refactored modules to now be prefixed with github.com/spdf/elektron instead of gitlab.com/spdf/elektron.
  2. Ran go mod init github.com/spdf/elektron to regenerate the go.mod and go.sum files.
  3. Ran go mod vendor to update the vendored repositories.

Note: Haven't yet changed the organization name from "spdf" to "spdfg" in the imports. We can do this once we are sure of the name.

ridv commented 4 years ago

This might be a good chance to experiment with keeping a separate repo with the dependencies. Something like elektron-vendor.

We can use git submodules to manage it. https://git-scm.com/book/en/v2/Git-Tools-Submodules

So this is how I would envision it working:

First line of defense using mod to download dependencies. Second line, if something got moved, using the elektron-vendor repository to download the dependencies.

pradykaushik commented 4 years ago

@rdelval pending review.