Refactor imports, Add vendor/ as submodule #5
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
fix
good first issue
help wanted
invalid
major
question
testing
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: spdf/elektron#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/refactor-imports-vendor-gomod"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
github.com/spdf/elektron
instead ofgitlab.com/spdf/elektron
.go mod init github.com/spdf/elektron
to regenerate the go.mod and go.sum files.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.
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.
@rdelval pending review.
:shipit: