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

[feature] Git.coordinates_to_conandata() is missing the repository argument. #17698

Closed
1 task done
Adnn opened this issue Feb 4, 2025 · 3 comments · Fixed by #17722
Closed
1 task done

[feature] Git.coordinates_to_conandata() is missing the repository argument. #17698

Adnn opened this issue Feb 4, 2025 · 3 comments · Fixed by #17722
Assignees
Milestone

Comments

@Adnn
Copy link
Contributor

Adnn commented Feb 4, 2025

What is your suggestion?

As discussed in previous issues, a repository argument has been added to both Git.get_commit() and Git.get_url_and_commit().
It looks like an oversight that it is not present on Git.coordinates_to_conandata().

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide
@memsharded memsharded self-assigned this Feb 5, 2025
@memsharded
Copy link
Member

Hi @Adnn

Thanks for the suggestion.

This looks like a valid case, and it looks pretty trivial to implement.
Do you think there is any downside or possible risk? Anything that should be taken into account if storing the repo commit instead of the folder one? Should anything change in the stored data in the conandata.yml? I think not, but just in case.

@memsharded memsharded added this to the 2.13.0 milestone Feb 5, 2025
@Adnn
Copy link
Contributor Author

Adnn commented Feb 6, 2025

Hi @memsharded , and thank you for your answer.

As far as I understand the situation, repository=True | repository=False are really orthgonal use-cases (1st for hosting a single conanfile in a subfolder of a repo, second for hosting distinct conanfiles in a single repo).
I suppose coordinates_to_conandata() is implemented under the hood in term of get_url_and_commit(), so I think it was a simple oversight, and forwarding the parameter (with the same default value of False) should not cause anyone any surprises.

@Adnn
Copy link
Contributor Author

Adnn commented Feb 6, 2025

I will actually try to implement this trivial forward, pay a tiny bit of my due.

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

Successfully merging a pull request may close this issue.

2 participants