-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
opam-web.sh: append the redirect to the repo file, instead of replacing the entire file #234
Conversation
…ng the entire file
browse: "https://${BASEURL}/pkg/" | ||
upstream: "https://github.com/ocaml/opam-repository/tree/master/" | ||
# Append to the 'repo' file, and dispatch all non-standard versions | ||
cat <<EOF >>repo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cat <<EOF >>repo | |
sed -i 's/^browse: /d' repo | |
cat <<EOF >>repo | |
browse: "https://${BASEURL}/pkg/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but why? In opam-repository the browse
points to https://opam.ocaml.org/pkg
(and aside, what is browse
used for?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and aside, what is browse used for?
no idea. @rjbou do you know what it's used for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed my commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, https://opam.ocaml.org/pkg/ returns an empty page (404, Not found). In the opam sources, there's nothing using the browse
from OpamFile.RepoSyntax. From the Manual.md: * <a id="repofield-browse">`browse: <string>`</a>: An URL where the users may browse available packages online
now live after testing it on staging.opam.ocaml.org (sorry for the delay i was at EMF) |
//cc @kit-ty-kate -- this should do the trick, or shouldn't it?