I am trying to configure Gitlab's CI for my template project for new Warp servers:
https://gitlab.com/Kozaky/graphql_template/-/tree/repository . The problem is that I am getting an error when I try to build it in the pipeline: Failed to read file .....src/web/Cargo.toml. I guess the problem has something to do with Cargo not being able to find the dependencies when the project uses workspaces in the main Cargo.toml, but I am a bit lost here.
You can find the .gitlab-ci.yml and the project itself in the URL I mentioned above. I would be really thankful if someone could tell me what is happening here.
Thanks a lot
Your project is not public.
Oops, my bad, thought it was public . Now it should allow you to access, thanks
src/web/cargo.toml file name has a wrong case. You need to rename it to
wow... I feel ashamed now hahahaha. Thank you very much.
I still do not know why it worked locally and not in the pipeline, maybe because of the OS. Never thought the solution could be so simple
I guess that's due to your local (case-insensitive) filesystem.
APFS, for example, comes in different flavors. My Mac reads both
cargo.toml just fine. GitLab CI probably uses Linux runners with a case-sensitive filesystem by default.
yeah, that's the reason, I was using a mac to build it and everything worked perfectly there. Thanks for the explanation
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.