Skip to content

Conversation

@smacker
Copy link
Contributor

@smacker smacker commented Jul 17, 2019

Fix #152

Go clean doesn't work with go modules and it doesn't make much sense to
run it when modules are used.

Ref: golang/go#31002

Because sourced-ce uses go modules for dependency resolution it is
expected that GO111MODULE is enabled.

This commit removes running go clean and executes rm only.

Signed-off-by: Maxim Sukharev max@smacker.ru

@smacker smacker requested a review from a team July 17, 2019 14:04
Copy link
Contributor

@dpordomingo dpordomingo left a comment

Choose a reason for hiding this comment

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

Copy link
Contributor

@dpordomingo dpordomingo left a comment

Choose a reason for hiding this comment

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

not a strong-strong-strong opinion... but I'd really really really prefer if we'd follow ci api if there is no strong reason to ignore it.

Makefile Outdated

OS := $(shell uname)

bin-clean:
Copy link
Contributor

Choose a reason for hiding this comment

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

In order to follow ci api, I think we should override ci/Makefile.main::clean target, instead of using a new one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

then it complains about overriding (warning). If everybody prefers that, I'm okay to change.

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, and imo the overriding warning is something expected when working with Make. And it's also a good way to notify that the used clean is different from the common one.

Copy link
Contributor

Choose a reason for hiding this comment

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

I also prefer using clean.

@carlosms
Copy link
Contributor

Would it be possible to change src-d/ci instead, and have the clean target work when modules are enabled?

@smacker
Copy link
Contributor Author

smacker commented Jul 18, 2019

@carlosms taking into account that src-d/ci#98 is open for more than 4 months - no.

@carlosms
Copy link
Contributor

Still, if it makes sense to include the fix in src-d/ci, we could submit a PR there, and while we wait for it to be merged override clean in our local Makefile, as @dpordomingo said.

Fix #152

Go clean doesn't work with go modules and it doesn't make much sense to
run it when modules are used.

Ref: golang/go#31002

Because sourced-ce uses go modules for dependency resolution it is
expected that GO111MODULE is enabled.

This commit removes running `go clean` and executes `rm` only.

Signed-off-by: Maxim Sukharev <max@smacker.ru>
@smacker
Copy link
Contributor Author

smacker commented Jul 18, 2019

repushed with override.

@carlosms I don't see any sense in creating PRs that aren't geting merged ever.

Copy link
Contributor

@dpordomingo dpordomingo left a comment

Choose a reason for hiding this comment

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

LGTM, many thanks for considering my suggestions.

@smacker
Copy link
Contributor Author

smacker commented Jul 18, 2019

@dpordomingo overriding definitely makes sense. I just don't like warnings 😅

@smacker smacker merged commit ba389fe into src-d:master Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integrations tests are broken

4 participants