Fix native gem builds
What does this MR do?
Fixes the native gem compilation failure in CI by updating the Docker build context to mount from the parent directory.
Why was this change needed?
The recent change in !315 (merged) (commit 83b5890e) moved .cargo/config.toml from glql_rb/ext/gitlab_query_language/.cargo/config.toml to glql_rb/.cargo/config.toml and updated the path from ../.. to ../.
This works for local development, but breaks CI builds because:
- The Docker container only mounts the
glql_rbdirectory - The Cargo patch path
../tries to access the parent directory'sCargo.toml - The parent directory is not accessible inside the container
What are the relevant issue numbers?
Fixes the pipeline failure in job: https://gitlab.com/gitlab-org/glql/-/jobs/13132750840
Error:
failed to read `/builds/gitlab-org/glql/Cargo.toml`
No such file or directory (os error 2)
How was this tested?
By temporarily adding RELEASE to the MR name, the gem building jobs are enabled and can be triggered manually ( see Pipelines )
Edited by Daniele Rossetti