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

update install and dune dependency in package overview #2668

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

akankshat05
Copy link
Contributor

For #2015
cc @sabine

@akankshat05 akankshat05 marked this pull request as ready for review August 26, 2024 20:17
@@ -54,14 +54,14 @@ in
Install
</h2>

<%s! Copy_to_clipboard.small_code_snippet ~id:"install-package" ~class_:"whitespace-nowrap" ("opam install " ^ package.name ^ "." ^ specific_version) %>
<%s! Copy_to_clipboard.small_code_snippet ~id:"install-package" ~class_:"whitespace-nowrap" ("opam install " ^ package.name) %>
Copy link
Collaborator

Choose a reason for hiding this comment

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

removing the version entirely only makes sense when we are on the latest version of the package, i.e. on any URL like this: https://ocaml.org/p/PACKAGE_NAME/latest.

Also, I think we don't need to remove the version from the opam install command because being precise here is actually helpful so people get an error message if they haven't updated their opam.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It should now be omitted for only the dune dependency for latest version of the package. Am i correct?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't know, there's no new commit on this branch yet.

Copy link
Collaborator

@sabine sabine left a comment

Choose a reason for hiding this comment

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

updated to omit the version on the /latest URL

@sabine sabine merged commit 0778f67 into ocaml:main Oct 1, 2024
2 of 3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants