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

Improve functionality to fetch/build a project from a specific commit SHA #78

Open
mjram0s opened this issue Sep 9, 2022 · 0 comments

Comments

@mjram0s
Copy link

mjram0s commented Sep 9, 2022

Yes, it's possible, but the mechanism should be improved. There seems to be a small bug. With the current version, it seems you have to do

coinbrew fetch Cbc@master --main-proj-sha=<commit SHA> 

The request for master ends up being ignored, but if you don't specify it, coinbrew will complain.

Note, however, that this does not check out the dependencies as they were at that time, so what you probably really want is to use the --time option, which checks out all packages at a particular point in time. You can use the date format of the git commit log. So do something like

~/projects/Clp> git show c5b57d3d759a6c
commit c5b57d3d759a6cf198600d768df87761e65e406c
Author: Ruan Luies <[email protected]>
Date:   Mon Jul 25 17:21:10 2022 +0200
...
~/Projects> coinbrew fetch Clp@master --time="Mon Jul 25 17:21:10 2022"

Note that the --time option has the same bug. If you open an issue on this, I'll try to have a look at it.

Originally posted by @tkralphs in #77 (comment)

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

1 participant