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

Make it so pin list display the current revision of the pinned repo #6274

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

desumn
Copy link
Contributor

@desumn desumn commented Oct 28, 2024

Implementation of issue #5533

It works, but I'm not sure it's the best way to do it

@desumn
Copy link
Contributor Author

desumn commented Oct 28, 2024

In particular, may the url or revision be empty for a git/hs/darcs kind?

Copy link
Collaborator

@rjbou rjbou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for you PR!
You'll find some comments specific to the implementation the implementation.
To complete the PR, it needs also to:

  • add a test (we can do it)
  • update the list manpage text to inform about the new column, especially that it is the hash of the current state of the source, not the installed one.
  • polishing (remove trailing whitespace, indent, 80 columns), but we will do it at the end.

A todo for the dev team: we'll need to add a more exhaustive test to pin, existing one tests only the several kind of pin (vcs/path/version), but not the not synchronised package.

src/client/opamPinCommand.ml Outdated Show resolved Hide resolved
src/client/opamPinCommand.ml Outdated Show resolved Hide resolved
master_changes.md Outdated Show resolved Hide resolved
src/client/opamPinCommand.ml Outdated Show resolved Hide resolved
src/client/opamPinCommand.ml Outdated Show resolved Hide resolved
src/client/opamPinCommand.ml Outdated Show resolved Hide resolved
src/client/opamPinCommand.ml Outdated Show resolved Hide resolved
src/client/opamPinCommand.ml Outdated Show resolved Hide resolved
@kit-ty-kate kit-ty-kate added this to the 2.4.0~alpha1 milestone Oct 29, 2024
@kit-ty-kate
Copy link
Member

side remark on the code itself: many of the lines of code added by this PR contain a trailing whitespace. It would be nice to avoid them

@desumn
Copy link
Contributor Author

desumn commented Oct 29, 2024

Thanks for your review, I'll be working on implementing them

Copy link
Member

@kit-ty-kate kit-ty-kate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. Thanks for this contribution!
We'll do the rest (fix the tests)

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

Successfully merging this pull request may close these issues.

3 participants