-
Notifications
You must be signed in to change notification settings - Fork 353
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
pin -k: take current version of Git-tracked files #1868
Comments
Thinking this over I'm also more in favor of the first, since it does safer by default, if you forgot to |
I think it's an excellent idea. I would tend to prefer the first approach too. |
A behaviour equivalent to running rsync with
I'd be in favor of 2 from an interface point of view, keeping the current local mode behaviour. You'd still be able to target a specific branch ( Last, but not least, we'll need to properly and clearly explain this at the correct places to be sure not to add to the confusion. |
Le mardi, 18 novembre 2014 à 02:13, Louis Gesbert a écrit :
That seems quite sensitive to me. We get the good default (at least IMHO) but can still switch to a more stringent mode. And yes to default git-pinningon git repos, almost every time I add a pin I need to it twice because I forget the Best, Daniel |
Closes ocaml#1868. Thanks a lot for the idea !
-k git
makes development difficult by requiring you to commit before testing, and it's easy to forget to do this.-k path
copies everything, including files likesetup.data
that will mess up the build.It would be good to have a hybrid mode, where we use the current state of the files in the working directory, but use Git metadata to decide which files to copy. Two approaches have been suggested:
git add
it for opam to use it.(For development, I prefer the first option, because it means I can test by installing locally with opam and know I didn't forget to add a file.)
Original discussion: http://lists.ocaml.org/pipermail/opam-devel/2014-November/000806.html
The text was updated successfully, but these errors were encountered: