-
Notifications
You must be signed in to change notification settings - Fork 95
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 issue running k8s and cross locally #362
Conversation
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 don't think we need a wrapper script.
We are already specifying the target in the Makefile
with TARGET_FLAG
.
It's just a matter of adding --target-dir=./target/build/$(TARGET)
to TARGET_FLAG
.
You also need to use the same target-dir
in the install-%
rule (IIUC, that's why CI failed).
I propose we use a new makefile variable TARGET_DIR
, and we set it to ./target/build/$(TARGET)
when using cross or to ./target
otherwise.
looks like latest failures is due to cross setting. This is working locally when I run it, with same setting 👀
|
125da87
to
e2cd07a
Compare
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.
lgtm! I didn't run the commands locally though. Will try it out next week.
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.
LGTM
Signed-off-by: James Sturtevant <[email protected]> Signed-off-by: Jorge Prendes <[email protected]> Co-authored-by: Jorge Prendes <[email protected]>
c78c864
to
99c3951
Compare
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.
LGTM
I am trying to get |
Merging it in now. The progress on my side is slow and I don't want to block the PR |
This PR addresses two issues after #359 when running
make test/k8s-wasmtime
locally.First, the
TARGET
is not being set properly. SinceTARGET
was already set when re-invoking$(MAKE)
it gets the prior value. Example output:Second, cross has issues when switching targets: https://github.com/cross-rs/cross/wiki/FAQ#glibc-version-error. I ran into this only my local set up, where the first step of cross (after fixing the above) would error out with
This also adds a
clean
target which allows for testing this scenario, otherwise several of the steps get skipped since they already compiled.