conan-io / web

Conan website, including home and ConanCenter
MIT License
10 stars 10 forks source link

[conan.io/center] Capture/Show git commit corresponding to recipe revision #186

Open rconde01 opened 1 year ago

rconde01 commented 1 year ago

What is your problem/feature request?

I needed to do a maintenance release of an older product build. The fix required a change to a 3rd party library that was pulled from conan center. This required me to vendor the recipe. Because I wanted to change as little as possible, I wanted to get the exact recipe used for the recipe revision I was locked to. I was able to recreate this from the cache of my previous package version, but it is missing some stuff (e.g. testing). It would have been useful if I could have looked up the git commit corresponding to that recipe revision so I could browse the repository at that commit. Seems like you could capture that at the time the recipe is published.

AbrilRBS commented 1 year ago

Hi @rconde01 thanks for your suggestion. I can't guarantee that anything will come out of it, but I plan to take a look at this next week to understand the feasibility of having a feature such as the one you describe :)

prince-chrismc commented 1 year ago

https://cpplang.slack.com/archives/C41CWV9HA/p1682097512972079

Given that each version get's a different revision and does not match the source code because of the hooks reduction of the conandata.yml so it only "kinda" matches.

I am pretty sure this is not possible without other backend changes... since we do not build a commit that ever exists on GItHub that SHA would be meaning less but it could add to the importance of the other changes

:)