Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

migrate to go module #27

Merged
merged 37 commits into from
Jan 24, 2020
Merged

migrate to go module #27

merged 37 commits into from
Jan 24, 2020

Conversation

honnix
Copy link
Member

@honnix honnix commented Nov 29, 2019

No description provided.

@honnix
Copy link
Member Author

honnix commented Nov 29, 2019

Might relate to golang/go#27455 and golang/go#30185

@honnix
Copy link
Member Author

honnix commented Dec 4, 2019

I think merge flyteorg/flytestdlib#50 and release a new pflags will get this fixed.

@honnix
Copy link
Member Author

honnix commented Dec 4, 2019

@@EngHabu Could you please take a look at this as well? Thanks.

@honnix
Copy link
Member Author

honnix commented Dec 4, 2019

I compiled pflags and verified locally.

@honnix
Copy link
Member Author

honnix commented Dec 9, 2019

golang/go#30515

@honnix
Copy link
Member Author

honnix commented Dec 9, 2019

golang/go#33008

generate_mocks.sh Outdated Show resolved Hide resolved
@honnix
Copy link
Member Author

honnix commented Dec 17, 2019

Don't understand why it adds all those h1 lines to go.sum. :(

wild-endeavor
wild-endeavor previously approved these changes Dec 18, 2019

# install outside of current module, workaround https://github.com/golang/go/issues/30515
# we need to copy go.mod and go.sum because we have a mockery fork
go_get_mockery () {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason we cannot turn off module and install is that we need the replace statement in go.mod because we are installing a mockery fork. Turning it off would result installing the original not the fork.

wild-endeavor added a commit to flyteorg/boilerplate that referenced this pull request Jan 23, 2020
This updates the boilerplate to use go modules instead of dep and follows the changes that have already been made:

* flyteorg/datacatalog#21
* flyteorg/flytepropeller#38
* flyteorg/flyteadmin#35
* flyteorg/flyteplugins#36
* flyteorg/flytestdlib#50
* flyteorg/flyteidl#27 (depends on flyteorg/flytestdlib#50 to be merged and released)
wild-endeavor
wild-endeavor previously approved these changes Jan 24, 2020
Copy link
Contributor

@wild-endeavor wild-endeavor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm approving, but could you take one more look at the commits I pushed please?

@honnix
Copy link
Member Author

honnix commented Jan 24, 2020

LGTM now but I cannot approve myself. :)

@EngHabu EngHabu merged commit e6e8040 into flyteorg:master Jan 24, 2020
@honnix honnix deleted the go-module-migration branch January 24, 2020 12:12
eapolinario pushed a commit to eapolinario/flyte that referenced this pull request Aug 21, 2023
This updates the boilerplate to use go modules instead of dep and follows the changes that have already been made:

* flyteorg/datacatalog#21
* flyteorg/flytepropeller#38
* flyteorg/flyteadmin#35
* flyteorg/flyteplugins#36
* flyteorg/flytestdlib#50
* flyteorg/flyteidl#27 (depends on flyteorg/flytestdlib#50 to be merged and released)
eapolinario pushed a commit that referenced this pull request Sep 8, 2023
* migrate to go module

* install mockery

* do not always download pflags

* latest version of flytestdlib

* refomat

* Revert "refomat"

This reverts commit b30109297ce71b8f40e9cfab60b2db9d1dd8ad06.

* mockery

* mockery

* sum

* test

* test

* test

* test

* test

* Update .travis.yml

* Update Makefile

* Update Makefile

* move it to the right place

* install mockery in a temp folder

* add comments

* upgrade flytestdlib

* go mod tidy

* add h1 sum

* test

* rebase from master

* latest flytestdlib

* install pflags in tmp folder

* change go version back

* add comment

* incorporate latest boilerplate changes

* rely on Makefile to install mockery

* updated boilerplate

* use install instead

* actually adding the new boilerplate entry and updating again

* removing unnecessary files

* no need for replacement in root go.mod

Co-authored-by: Yee Hing Tong <wild-endeavor@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants