-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Bring back 'make local' #711
Conversation
Thanks for splitting it out, and I agree
…On Thu, Jul 26, 2018 at 9:15 PM Steve Kriss ***@***.***> wrote:
Signed-off-by: Andy Goldstein ***@***.***
I pulled this out of #495 <#495>,
creating a PR so we don't lose track of it.
I'd like to see the goarch detection move to only happen in make local, bc
this is going to break make container when running on macOS.
------------------------------
You can view, comment on, or merge this pull request online at:
#711
Commit Summary
- Bring back 'make local'
File Changes
- *M* Makefile <https://github.com/heptio/ark/pull/711/files#diff-0>
(16)
Patch Links:
- https://github.com/heptio/ark/pull/711.patch
- https://github.com/heptio/ark/pull/711.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#711>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAABYhzlRLaFifjUlc9TmNjJmvxGk_K1ks5uKmmigaJpZM4VixJL>
.
|
LGTM. May want to update https://github.com/heptio/ark/blob/master/docs/build-from-scratch.md#cross-compiling to reference this target. |
not ready to merge |
@nrb which part are you saying should be updated in the cross-compiling section? |
@ncdc PTAL if you get a chance, I think this addresses the comment re: only detecting local arch when running |
@@ -79,6 +82,15 @@ all-build: $(addprefix build-, $(CLI_PLATFORMS)) | |||
|
|||
#all-push: $(addprefix push-, $(CONTAINER_PLATFORMS)) | |||
|
|||
local: build-dirs | |||
GOOS=$(GOOS) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can omit specifying all the variables that are unmodified and make
should pass them through when executing build.sh
. That would leave OUTPUT_DIR
as the only one we need. Try that and see if it works?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha, we could export
whatever variables we want to be passed down to all shell invocations from all targets, if desired.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eh, maybe in a separate PR :)
@skriss I was thinking this text: My Makefile knowledge isn't great, but isn't the point of this PR that the default target Am I getting that right? |
Ah, I see what you mean. Yeah, that sentence isn't really true in the current state. Let me see if I can do some rewording there. |
OK after re-reading that section + the Makefile, I made an edit to reflect existing reality better, but I'm not mentioning |
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com> Signed-off-by: Steve Kriss <steve@heptio.com>
@carlisia PTAL, merge if +1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Signed-off-by: Andy Goldstein andy.goldstein@gmail.com
I pulled this out of #495, creating a PR so we don't lose track of it.
I'd like to see the goarch detection move to only happen in make local, bc this is going to break
make container
when running on macOS.