-
Notifications
You must be signed in to change notification settings - Fork 107
FKAS go.mod is importing an actual CAPM3 release #2157
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
Comments
/triage accepted |
Just providing further context on this. This directive in the action mounts just the specified directory in the container via the reusable action, so ../../.. does not point to /api as it does not exist in build context. Building the PR #2379 would result in (simulated with "gh act" and relaxed workflow files):
|
Local docker build breaks exactly the same, no need to even use the container build workflow. Build context matters. |
What steps did you take and what happened:
https://github.com/metal3-io/cluster-api-provider-metal3/blob/main/hack/fake-apiserver/go.mod#L7
What did you expect to happen:
Should have used v0.0.0, and added a replace line to refer to ./../../api
Anything else you would like to add:
This happens because our image build workflow uses the absolute context, hence we cannot build with anything outside of the
hack/fake-apiserver
directory.This could be solved by mounting the
api/
to the build container, but that requires enabling buildkit. We might want to do that anyway, as docker build will go away soon./kind bug
The text was updated successfully, but these errors were encountered: