-
Notifications
You must be signed in to change notification settings - Fork 46
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
Hooks sabotage conandata.yml generated in export method #475
Comments
Thanks for raising this! |
@jwillikers Which hook specifically? Remember hooks repository contains several hooks. |
I believe it's the |
There's 70+ of those so it will take some work to investigate, is there a sample recipe with the issue? |
Just ensure that the The steps are below. Set up the Conan Center hooks.
Create a directory for the test project.
Create a new Conan template project.
Using this Meson template and substituting the
Initialize a Git repository.
Stage the files.
Commit.
Create a Conan package.
|
Thanks for the repo steps! |
@jwillikers Thank you for detailing your case. We do not allow Git or even
Said that, using However, if this situation is affecting your local development, not related to ConanCenterIndex, I would suggest disabling conan-center-index hook instead. |
@uilianries It would be helpful if those hooks you mentioned actually presented errors. In my case, building any project using the new Git SCM attribute fails with a completely opaque failure. When switching between internal and CCI projects, I can usually just disable hook errors with the environment variable as necessary, though I find CCI's hooks helpful for non-CCI packages, too. Here's the output that shows how this fails. It took me several hours to figure out why this was breaking since there's no hook failure related to the Git SCM functionality.
|
With Conan hooks installed, it is not possible to build a recipe according to example using the new Git functionality in the export and source method: https://docs.conan.io/en/latest/migrating_to_2.0/recipes.html#the-scm-attribute
The entire
conandata.yml
is overwritten and becomes a file with only a{}
in it. This makes it impossible to follow the example.PTAL @prince-chrismc @uilianries
The text was updated successfully, but these errors were encountered: