Skip to content
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

fix broken make run #13668

Merged
merged 1 commit into from Apr 11, 2017
Merged

Conversation

xiaoping378
Copy link
Contributor

fix #13667

Makefile Outdated
run: export PLATFORM=$(shell bash -c 'source hack/common.sh; os::build::host_platform')
run: build
$(OS_OUTPUT_BINPATH)/$(PLATFORM)/openshift start
$(PWD)/$(OS_OUTPUT_BINPATH)/$(PLATFORM)/openshift start
Copy link
Member

Choose a reason for hiding this comment

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

Please replace $(PWD) with $(OS_ROOT) which you can get like this:
run: export OS_ROOT=$(shell bash -c 'source hack/lib/init.sh; echo $${OS_ROOT}')

Makefile Outdated
@@ -217,10 +217,10 @@ test-extended:
#
# Example:
# make run
run: export OS_OUTPUT_BINPATH=$(shell bash -c 'source hack/common.sh; echo $${OS_OUTPUT_BINPATH}')
run: export OS_OUTPUT_BINPATH=$(shell bash -c 'source hack/lib/build/constants.sh; echo $${OS_OUTPUT_BINPATH}')
Copy link
Contributor

Choose a reason for hiding this comment

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

This should have been hack/lib/init.sh - that's the stable interface

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok,i will check it

@@ -217,7 +217,7 @@ test-extended:
#
# Example:
# make run
run: export OS_OUTPUT_BINPATH=$(shell bash -c 'source hack/common.sh; echo $${OS_OUTPUT_BINPATH}')
run: export OS_OUTPUT_BINPATH=$(shell bash -c 'source hack/lib/init.sh; echo $${OS_OUTPUT_BINPATH}')
run: export PLATFORM=$(shell bash -c 'source hack/common.sh; os::build::host_platform')
run: build
$(OS_OUTPUT_BINPATH)/$(PLATFORM)/openshift start
Copy link
Member

Choose a reason for hiding this comment

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

This still doesn't work for because it tries to run /linux/amd64/openshift start but my openshift binary is in /data/src/github.com/openshift/origin/_output/local/bin/linux/amd64/openshift

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is worked on my env, can you test bash -c 'source hack/lib/init.sh; echo ${OS_OUTPUT_BINPATH}'

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, it looks like I've changed wrong line. Yes it works.

@@ -217,7 +217,7 @@ test-extended:
#
# Example:
# make run
run: export OS_OUTPUT_BINPATH=$(shell bash -c 'source hack/common.sh; echo $${OS_OUTPUT_BINPATH}')
run: export OS_OUTPUT_BINPATH=$(shell bash -c 'source hack/lib/init.sh; echo $${OS_OUTPUT_BINPATH}')
run: export PLATFORM=$(shell bash -c 'source hack/common.sh; os::build::host_platform')
run: build
$(OS_OUTPUT_BINPATH)/$(PLATFORM)/openshift start
Copy link
Member

Choose a reason for hiding this comment

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

Sorry, it looks like I've changed wrong line. Yes it works.

@soltysh
Copy link
Member

soltysh commented Apr 10, 2017

LGTM [merge]

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 6927894

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/675/) (Base Commit: 585b160)

@soltysh
Copy link
Member

soltysh commented Apr 11, 2017

Flake #13708

[merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 6927894

@openshift-bot
Copy link
Contributor

openshift-bot commented Apr 11, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/311/) (Base Commit: 3963e0b) (Image: devenv-rhel7_6134)

@openshift-bot openshift-bot merged commit 10d04b3 into openshift:master Apr 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broken Makefile: make run
5 participants