Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Why does make try to build tools/runner? #1893

Closed
dpw opened this issue Jan 13, 2016 · 5 comments
Closed

Why does make try to build tools/runner? #1893

dpw opened this issue Jan 13, 2016 · 5 comments
Assignees
Labels
Milestone

Comments

@dpw
Copy link
Contributor

dpw commented Jan 13, 2016

With #1861, it is almost possible to checkout weaveworks/weave in an arbitrary location (i.e. not under your GOPATH) and do make.

Almost, but not quite, because it fails while doing make -C tools/runner. But it's not obvious to me why the all target needs to do that anyway (if one considers the point of the default target to be to satisfy the instructions in site/building.md). tools/runner looks like something for circleci, and surely circleci can invoke make with some other target to get what it needs?

If I remove $(RUNNER_EXE) as a dependency of all, then a build succeeds when not under GOPATH.

@dpw
Copy link
Contributor Author

dpw commented Jan 13, 2016

CC @tomwilkie

@tomwilkie
Copy link
Contributor

Yup we can remove that, but we we surely get complaints for people who try to run the tests manually (@rade). I could add it to the run-smoketests target?

@rade rade added the chore label Jan 14, 2016
@rade
Copy link
Member

rade commented Jan 14, 2016

I could add it to the run-smoketests target?

Fine, but I don't normally run that; I tend to run ./setup.sh and individual or groups of tests manually. So perhaps also add a pseudo-target for building all that is required to run the smoketests, so I get something more memorable than make tools/runner/runner.

@awh
Copy link
Contributor

awh commented Jan 14, 2016

So perhaps also add a pseudo-target for building all that is required to run the smoketests

And make run-smoketests depend on that, as I frequently use make all tests run-smoketests.

@rade
Copy link
Member

rade commented Jan 14, 2016

And make run-smoketests depend on that

Exactly. that was the idea.

@rade rade self-assigned this Jan 21, 2016
rade added a commit that referenced this issue Jan 21, 2016
That way a plain 'make' works out-of-the-box.

Fixes #1893.
rade added a commit that referenced this issue Jan 21, 2016
That way a plain 'make' works out-of-the-box.

Fixes #1893.
rade added a commit that referenced this issue Jan 21, 2016
move smoke test dependencies from 'all' to 'testrunner' target

Fixes #1893.
@rade rade added this to the 1.5.0 milestone Jan 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants