-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Migrate to go mod #626
Open
dpordomingo
wants to merge
17
commits into
src-d:master
Choose a base branch
from
dpordomingo:migrate-to-go-mod
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dpordomingo
force-pushed
the
migrate-to-go-mod
branch
2 times, most recently
from
April 12, 2019 10:40
5830d47
to
6eb50cb
Compare
dpordomingo
force-pushed
the
migrate-to-go-mod
branch
from
April 12, 2019 16:42
7e5d9ec
to
03bbabe
Compare
The purpose of Makefile.web is to test and build Lookout web, but it was also testing and building the whole Lookout because Makefile.web includes Makefile, and that one includes src-d/ci/Makefile.main This commit overrides Makefile.main::build, Makefile.main::test and Makefile.main::dependencies targets to avoid calling them when using Makefile.web Signed-off-by: David Pordomingo <[email protected]>
Signed-off-by: David Pordomingo <[email protected]>
Signed-off-by: David Pordomingo <[email protected]>
Signed-off-by: David Pordomingo <[email protected]>
Signed-off-by: David Pordomingo <[email protected]>
Signed-off-by: David Pordomingo <[email protected]>
Signed-off-by: David Pordomingo <[email protected]>
Signed-off-by: David Pordomingo <[email protected]>
It will be used `make vendor` to 'tidy', add dependencies into 'vendor' and verify that they matches their integrity checks Signed-off-by: David Pordomingo <[email protected]>
kallax models should be generated with 'make generate-go', kallax migrations should be generated with 'MIGRTION_NAME=<name> make generate-migrations' and packed with 'make pack-migrations' All the code generation: kallax and vendor can be done at once with 'make generate' kallax does not work with go Modules, so it'll be disabled issue: src-d/go-kallax#296 Signed-off-by: David Pordomingo <[email protected]>
dpordomingo
force-pushed
the
migrate-to-go-mod
branch
from
April 16, 2019 18:08
03bbabe
to
8850ecb
Compare
Signed-off-by: David Pordomingo <[email protected]>
Otherwise 'esc' and 'kallax' wont be installed properly and they will be added into 'go.mod' Signed-off-by: David Pordomingo <[email protected]>
Signed-off-by: David Pordomingo <[email protected]>
Instead of using traditional 'go get', with 'go Modules' it can be locked the tools used by the project in a standard way. Project dependencies will be added into './build/tools/bin' Signed-off-by: David Pordomingo <[email protected]>
Signed-off-by: David Pordomingo <[email protected]>
dpordomingo
force-pushed
the
migrate-to-go-mod
branch
from
April 16, 2019 19:28
8403634
to
3869f40
Compare
Signed-off-by: David Pordomingo <[email protected]>
dpordomingo
force-pushed
the
migrate-to-go-mod
branch
from
April 17, 2019 02:22
3869f40
to
123e60d
Compare
Signed-off-by: David Pordomingo <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix #592
depends on #631
caused by https://github.com/src-d/backlog/issues/1392
blocked by src-d/go-git-fixtures#15
go mod init
to creatego.mod
go.mod
: addreplace github.com/Sirupsen/logrus => github.com/sirupsen/logrus latest
go.mod
: addreplace google.golang.org/cloud => cloud.google.com/go latest
github.com/google/go-github
to begithub.com/google/go-github/v24
ingo.mod
and in all imports of Lookoutgo mod tidy
go mod vendor
TODO:
building an inventory of dependencies that were automatically added/dropped/updated during the process.