Skip to content
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

CI build fails with .targets.mk: No such file or directory #383

Open
cabo opened this issue May 25, 2023 · 2 comments
Open

CI build fails with .targets.mk: No such file or directory #383

cabo opened this issue May 25, 2023 · 2 comments

Comments

@cabo
Copy link
Contributor

cabo commented May 25, 2023

lib/main.mk:21: Forcing rebuild of .targets.mk
lib/main.mk:33: .targets.mk: No such file or directory

As this is now happening on multiple repos, I'd love to know what I'm doing wrong and a simple way to fix this.

E.g.,
https://github.com/ietf-wg-jsonpath/draft-ietf-jsonpath-base/actions/runs/5079194601/jobs/9124628690?pr=471
https://github.com/ietf-wg-jsonpath/iregexp/actions/runs/5079074223/jobs/9124364460

@cabo
Copy link
Contributor Author

cabo commented May 26, 2023

.targets.mk is in .gitignore, so it indeed needs to be rebuilt for each CI run.
It seems this was put in there by the setup run.

Updating the lib submodule manually fixed the build. But should I still be doing this?

@martinthomson
Copy link
Owner

martinthomson commented May 26, 2023

Oh, I'm glad you worked something out because this was baffling. The document image entrypoint makes the targets file directly (the output is confusing, but that's how make operates) so those builds were a head-scratcher.

Updating the submodule is going to be necessary in some cases, but I don't know specifically what shifted to cause this issue. You appear to have been using a version from Nov 2021, which is a while back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants